gpt4 book ai didi

google-analytics - NativeApplicationClient.ClientIdentifier 未解析

转载 作者:行者123 更新时间:2023-12-03 16:00:27 24 4
gpt4 key购买 nike

我已经引用了这个帖子 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 Analytic 数据,但在此之前我需要对用户进行身份验证,Google 可以通过提供 Access_Token 允许他离线访问!

请让我知道我做错了什么。

问候,
苏布拉塔

最佳答案

您正在构建什么类型的应用程序(Web、服务帐户、已安装的应用程序)?您获取 oath token 的方式会根据它是什么类型的应用程序而有所不同。

关于google-analytics - NativeApplicationClient.ClientIdentifier 未解析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18436099/

24 4 0
文章推荐: google-analytics - Google Analytics(分析)自定义网站搜索(Lucene/SQL Server全文搜索)
文章推荐: ruby-on-rails - 需要卸载 rake 0.9.2.2 并安装 rake 0.8.7
文章推荐: ruby-on-rails - 将
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com