Intercom\IntercomBulk::events PHP Метод

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

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

Usage Example

Пример #1
0
 public function testBulkEvents()
 {
     $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock();
     $stub->method('post')->will($this->returnArgument(0));
     $bulk = new IntercomBulk($stub);
     $this->assertEquals('bulk/events', $bulk->events([]));
 }