Ejemplo n.º 1
0
        /// <summary>
        /// Gets a request token from the provider. After acquiring a request token, the user should be redirected
        /// to the website of the provider for approving the application. If successful, the user will be redirected
        /// back to the specified callback URL where you then can exchange the request token for an access token.
        /// </summary>
        /// <returns>An instance of <see cref="SocialOAuthRequestTokenResponse"/> representing the response.</returns>
        public virtual SocialOAuthRequestTokenResponse GetRequestToken()
        {
            // Make the call to the API/provider
            SocialHttpResponse response = GetRequestTokenResponse();

            // Parse the response body
            SocialOAuthRequestToken body = SocialOAuthRequestToken.Parse(this, response.Body);

            // Parse the response
            return(SocialOAuthRequestTokenResponse.ParseResponse(response, body));
        }