Intercom\IntercomLeads::convertLead PHP Метод

convertLead() публичный Метод

Converts Lead.
См. также: https://developers.intercom.io/reference#convert-a-lead
public convertLead ( $options ) : mixed
$options
Результат mixed
    public function convertLead($options)
    {
        return $this->client->post("contacts/convert", $options);
    }

Usage Example

Пример #1
0
 public function testLeadsConvert()
 {
     $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock();
     $stub->method('post')->will($this->returnArgument(0));
     $leads = new IntercomLeads($stub);
     $this->assertEquals('contacts/convert', $leads->convertLead([]));
 }