2

この投稿Google Authentication Processを既に参照しましたが、これは私の問題とまったく同じではありませんが、使用しているコードは似ています。

using System;
using DotNetOpenAuth.OAuth2;
using Google.Apis.Authentication.OAuth2;
using Google.Apis.Authentication.OAuth2.DotNetOpenAuth;
using Google.Apis.Samples.Helper;

private void Window_Initialized(object sender, EventArgs e)
{
     var provider = new NativeApplicationClient(GoogleAuthenticationServer.Description);
     provider.ClientIdentifier = "<My Client Id here>";
     provider.ClientSecret = "<My Client Secret here";
     ...
     ...
}

私の問題は解決されていprovider.ClientIdentifierませんprovider.Secret。DotNetOpenAuth バージョン 4.0.0.11165 と Google API バージョン v201306 を参照しています。

私の目的は、さまざまなアカウントから Google アナリティクス データを取得することですが、その前にユーザーを認証する必要があり、Google は Access_Token を提供してオフライン アクセスを許可できます。

私が間違っていることを教えてください。

よろしく、サブラタ

4

1 に答える 1