- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我使用 ms vs express 2012 win 桌面并尝试编译此代码示例 https://developers.google.com/youtube/v3/code_samples/dotnet#upload_a_video
我得到了 nuget 包,例如 Google.Apis.YouTube.v3、Google.Apis.Authentication 和 Google APIs Client Library。现在我有几百个 dll,其中一些正在复制。
添加了以下引用
我的使用指令:
using System;
using System.IO;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Google.Apis;
using Google.Apis.Authentication.OAuth2;
using Google.Apis.Authentication.OAuth2.DotNetOpenAuth;
using Google.Apis.Services;
using Google.Apis.Upload;
using Google.Apis.Util.Store;
using Google.Apis.YouTube;
using Google.Apis.YouTube.v3;
using Google.Apis.YouTube.v3.Data;
编译失败,出现以下错误:
UserCredential can not be found (missing using directive?)
GoogleWebAuthorizationBroker does not exist
GoogleClientSecrets does not exist
我需要什么引用或使用指令? GoogleWebAuthorizationBroker 似乎需要 Google.Apis.Auth.PlatformServices - 我有 Google.Apis.Authenication.PlatformServices 引用,没有帮助。
最佳答案
我们大约 3 年前就停止使用 DotNetOpenAuth 和 Google.Apis.Authentication(https://www.nuget.org/packages/Google.Apis.Authentication/ 已过时)。请注意 https://developers.google.com/youtube/v3/code_samples/dotnet#upload_a_video 中的示例实际上使用了正确的用法。
我建议您清理项目并重新安装 YouTube NuGet 包,它会为您安装所有正确的依赖项。
关于c# - 未找到来自 google api 的 UserCredential 类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36622282/
这是我当前的模拟,我希望createUserWithEmailAndPassword返回firebase.auth.UserCredential,以便我可以测试它是否在我的应用程序中被调用。 ts A
我使用 AcquireTokenAsync 通过 Azure Active Directory 进行身份验证。 下面是代码 var uc = new UserCredential(username,
我正在尝试将我的 spring boot 应用程序部署到 cloud foundry。但是我收到以下错误。 2016-02-19T16:54:29.57+0000 [App/0] ERR C
我们有一个使用 AFHTTPClient 的类和 AFHTTPRequestOperation是在内部。在开发中,我们使用无效的 SSL 证书连接到服务器,因此我们在返回请求操作的方法中有以下代码:
// Based on http://stackoverflow.com/questions/3934639/soap-authentication-with-php include 'auth.ph
我使用 ms vs express 2012 win 桌面并尝试编译此代码示例 https://developers.google.com/youtube/v3/code_samples/dotnet
其中一个应用程序使用 MongoClient 作为与最近启用了身份验证的 MongoDB 交互的核心。在这个 mongoClient 被初始化为: mongoClient = new MongoCli
我正在关注 this blog post在用户注册后向他们发送电子邮件验证,这是我在执行 sendEmailVerification() 时遇到的问题 The method 'sendEmailVer
我刚刚开始使用 mongodb 作为我的新项目的存储库,一切都很好,直到我们决定在 mongo 服务器中设置用户身份验证。 我如下更改 spring.config.xml 以通过身份验证连接到 mon
所以我有这段代码 我的问题是,如果我已经通过 OAuth 进行身份验证,我该如何配置 UserCredential? 目前的情况是代码将显示另一个登录页面重定向到谷歌。由于我已经使用 asp.net
在 ADAL.NET 2.x 中,我们使用以下代码使用 UserCredential 从 Azure AD 获取 token ,并且效果完美: var authContext = new Authe
我正在尝试通过 C# 控制台应用程序使用 Google Drive 和 Spreadsheets API。我想使用带有 FileDataStore 的用户凭据对这两项服务进行授权,这样我就不必在每次运
我在代码中使用 ADAL。我想要使用的一件事是使用不同的凭据,这样我就可以在控制台程序中针对 Azure AD 授权不同的用户。 Microsoft.IdentityModel.Clients.A
在过去的两天里,我一直在尝试从我的网站将视频上传到 YouTube。 VB 没有文档,.Net 也没有很多工作示例。 无论如何,我正在寻找以任何可能的方式将视频上传到 youtube。我尝试过 You
我的应用程序使用带有 OAuth 的 Google API Calendar V3,效果很好。它会在第一时间征求用户的同意。使用日历服务很容易创建、修改和删除日历事件。到目前为止,一切都很好! 现在我
我最近更新到了 Microsoft.IdentityModel.Clients.ActiveDirectory v3 的稳定版本。我读过here类UserCredential不再支持重载UserCre
我最近更新到了 Microsoft.IdentityModel.Clients.ActiveDirectory v3 的稳定版本。我读过here类UserCredential不再支持重载UserCre
我是一名优秀的程序员,十分优秀!