Intercom\IntercomBulk::events PHP Method

events() public method

Creates Events in bulk.
See also: https://developers.intercom.io/reference#bulk-event-operations
public events ( array $options ) : mixed
$options array
return mixed
    public function events($options)
    {
        return $this->client->post("bulk/events", $options);
    }

Usage Example

 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([]));
 }