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 testEventsGet()
 {
     $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock();
     $stub->method('get')->willReturn('foo');
     $users = new IntercomEvents($stub);
     $this->assertEquals('foo', $users->getEvents([]));
 }