I have read all the discussions here and have studied Google’s APIs and OAuth spec, but I’m still getting an invalid signature.
I’ve tried using POST and GET, using Headers and Parameters, but still missing something. (Probably something easy or stupid.)
I have been successful using Hammock to retrieve a Request Token from Twitter so I’m perplexed as to what I’m leaving out for Google.
I’m writting this for Windows Phone 7 using VS 2010 Express and the Windows Phone 7 version of Hammock. Here is my code, please give me some advice.
var requestTokenCredentials = OAuthCredentials.ForRequestToken("anonymous", "anonymous", "oob");
var client = new RestClient();
client.Authority = "https://www.google.com";
client.Credentials = requestTokenCredentials;
client.HasElevatedPermissions = true;
client.AddParameter("scope", GoogleURIs.myScope);
var request = new RestRequest();
request.Path = "/accounts/OAuthGetRequestToken";
client.BeginRequest(request, RequestCallback, client);
Richard
After more research on Google OAuth APIs I decided to use OAuth V2. Google recomends using the new version and, so far, it has worked well.