public function getAccessObject($code, $state = null)
    {
        $availableOptions = ['client_secret', 'grant_type', 'state', 'code', 'redirect_uri'];

        $options = [
            'client_secret' => config('twitch-api.client_secret'),
            'grant_type' => 'authorization_code',
            'code' => $code,
            'state' => $state,
            'redirect_uri' => config('twitch-api.redirect_url'),
        ];

        return $this->sendRequest('POST', 'oauth2/token', false, $options, $availableOptions);
    }