Intercom\IntercomLeads::getLeads PHP 메소드

getLeads() 공개 메소드

Lists Leads.
또한 보기: https://developers.intercom.io/reference#list-leads
public getLeads ( array $options ) : mixed
$options array
리턴 mixed
    public function getLeads($options)
    {
        return $this->client->get("contacts", $options);
    }

Usage Example

예제 #1
0
 public function testLeadsList()
 {
     $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock();
     $stub->method('get')->willReturn('foo');
     $leads = new IntercomLeads($stub);
     $this->assertEquals('foo', $leads->getLeads([]));
 }