public function getEvents($app, $subscribeAll = false)
    {
        $uri = 'events';
        $response = $this->client->getEndpoint()->get($uri, [
            'form_params' => [
                'app' => $app,
                'subscribeAll' => $subscribeAll,
            ]
        ]);

        $events = [];
        foreach (\GuzzleHttp\json_decode($response->getBody()) as $event) {
            $events[] = new Event($this->client, $event);
        }

        return $events;
    }