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

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

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

Usage Example

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