Intercom\IntercomEvents::getEvents PHP Method

getEvents() public method

Lists User Events.
See also: https://developers.intercom.io/reference#list-user-events
public getEvents ( array $options ) : mixed
$options array
return mixed
    public function getEvents($options)
    {
        return $this->client->get("events", array_merge(["type" => "user"], $options));
    }

Usage Example

 public function testEventsGet()
 {
     $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock();
     $stub->method('get')->willReturn('foo');
     $users = new IntercomEvents($stub);
     $this->assertEquals('foo', $users->getEvents([]));
 }