public String getAccessToken()
{
if (string.IsNullOrEmpty(Token) || string.IsNullOrEmpty(Verifier))
{
Exception e = new Exception("The request token and verifier were not set");
throw e;
}
string response = oAuthWebRequest(Method.POST, ACCESS_TOKEN, string.Empty);
if (response.Length > 0)
{
NameValueCollection qs = HttpUtility.ParseQueryString(response);
if (qs["oauth_token"] != null)
{
this.Token = qs["oauth_token"];
}
if (qs["oauth_token_secret"] != null)
{
this.TokenSecret = qs["oauth_token_secret"];
}
}
return Token;
}