Intercom\IntercomLeads::leadPath PHP Method

leadPath() public method

Returns endpoint path to Lead with given ID.
public leadPath ( string $id ) : string
$id string
return string
    public function leadPath($id)
    {
        return "contacts/" . $id;
    }

Usage Example

 public function testLeadPath()
 {
     $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock();
     $leads = new IntercomLeads($stub);
     $this->assertEquals($leads->leadPath("foo"), "contacts/foo");
 }