Foretagsplatsen.Api2.OAuthService.GetRequestToken C# (CSharp) Метод

GetRequestToken() публичный Метод

The first step to authenticating a user is to obtain a request token from Företagsplatsen. This step serves two purposes: First, to tell Företagsplatsen what you're about to do. Second, to tell Företagsplatsen what you want to do for the OAuth callback.
public GetRequestToken ( ) : void
Результат void
        public void GetRequestToken()
        {
            try
            {
                RequestToken = session.GetRequestToken();

                if (RequestToken.Token == null)
                {
                    throw new ApiException("Invalid request token. (This can occur with the wrong provider host.)");
                }
            }
            catch (OAuthException ex)
            {
                // If signature_invalid then consumer key/secret is invalid
                if (ex.Report.Problem.Equals("signature_invalid"))
                {
                    throw new OAuthConsumerException(ex);
                }

                Debug.WriteLine(ex.Message);
                throw;
            }
        }