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;
}
}