private function createOAuthToken(OAuthResponse $response)
    {
        if (!$response->hasData('oauth_token') || !$response->hasData('oauth_token_secret')) {
            throw new OAuthException('An error occured when creating the OAuth token.', $response);
        }

        return new OAuthToken($response->getData('oauth_token'), $response->getData('oauth_token_secret'));
    }