Intercom\IntercomLeads::deleteLead PHP 메소드

deleteLead() 공개 메소드

Deletes Lead.
또한 보기: https://developers.intercom.io/reference#delete-a-lead
public deleteLead ( string $id, array $options = [] ) : mixed
$id string
$options array
리턴 mixed
    public function deleteLead($id, $options = [])
    {
        $path = $this->leadPath($id);
        return $this->client->delete($path, $options);
    }

Usage Example

예제 #1
0
 public function testLeadsDelete()
 {
     $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock();
     $stub->method('delete')->willReturn('foo');
     $leads = new IntercomLeads($stub);
     $this->assertEquals('foo', $leads->deleteLead("bar"));
 }