作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经引用了这个帖子 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。
最佳答案
您正在构建什么类型的应用程序(Web、服务帐户、已安装的应用程序)?您获取 oath token 的方式会根据它是什么类型的应用程序而有所不同。
关于google-analytics - NativeApplicationClient.ClientIdentifier 未解析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18436099/
我已经引用了这个帖子 Google Authentication Process ,这与我的问题并不完全相似,但我使用的代码是相似的。 using System; using DotNetOpenAu
我在 watchos2 上有一个智能 watch 应用程序。该应用程序始终有效,但现在启动时我立即收到此错误: Lop_WatchKit_Extension[17535:7854201] ******
我是一名优秀的程序员,十分优秀!