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

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

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

Usage Example

Пример #1
0
 public function testLeadCreate()
 {
     $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock();
     $stub->method('post')->willReturn('foo');
     $leads = new IntercomLeads($stub);
     $this->assertEquals('foo', $leads->create([]));
 }