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([]));
 }