我已閱讀此處的所有討論,並已研究過Google的API和OAuth規範,但我仍收到無效簽名。Google日曆的無效簽名
我試過使用POST和GET,使用頭和參數,但仍然缺少一些東西。 (可能是簡單或愚蠢的。)
我已經成功地使用Hammock從Twitter中檢索請求令牌,所以我很困惑我爲什麼要離開Google。
我正在使用VS 2010 Express和Windows Phone 7版本的Hammock爲Windows Phone 7寫這篇文章。這是我的代碼,請給我一些建議。
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);
理查德
我被困在一個類似的問題。如果您找到了解決方案,請告訴我。 – 2011-06-12 18:33:52
我決定使用OAuth V2。谷歌推薦使用新版本。到目前爲止,它對我來說效果很好。 – rshives 2011-07-06 15:01:21