I want to implement authorization to Tumblr. During the reception access_token like this:
string request_url =
"https://www.tumblr.com/oauth/access_token" + "?" +
"oauth_consumer_key=" + oauth_consumer_key + "&" +
"oauth_token=" + main_oauth_token + "&" +
"oauth_signature_method=" + "HMAC-SHA1" + "&" +
"oauth_signature=" + Uri.EscapeDataString(oauth_signature) + "&" +
"oauth_timestamp=" + oauth_timestamp + "&" +
"oauth_nonce=" + oauth_nonce + "&" +
"oauth_version=" + "1.0" + "&" +
"oauth_verifier=" + oauth_verifier;
HttpClient httpClient = new HttpClient();
string responseBodyAsText = await httpClient.GetStringAsync(request_url);
I get the following error:
An exception of type 'System.Net.Http.HttpRequestException' occurred in mscorlib.ni.dll but was not handled in user code
Additional information: Response status code does not indicate success: 401 (Unauthorized).
Callback URL i am set. What could be the problem?