「Googleでサインイン」機能を備えたWindows Phone 7アプリを作成しました。Google ライブラリは Windows Phone ランタイムと互換性がないため、RestSharp を選択します。
アプリは Google から認証コードを正常に受信しました。次のステップは、コードをアクセス トークンと更新トークンに交換することです。ここで私はいくつかの問題に遭遇しました。
var request = new RestRequest(this.TokenEndPoint, Method.POST);
request.AddParameter("code", code);
request.AddParameter("client_id", this.ClientId);
request.AddParameter("client_secret", this.Secret);
request.AddParameter("redirect_uri", "http://localhost");
request.AddParameter("grant_type", "authorization_code");
client.ExecuteAsync<???>(request, (response) =>
{
var passIn = response;
}); // how to use this method?
client.ExecuteAsync<T>
Google からの応答を取得するためにメソッド (または他の方法が役立つ) を使用する方法がわかりません。そのような方法を使用するために事前に要求された他のコードはありますか? 誰でも私を助けることができますか?