【发布时间】:2016-03-21 19:07:49
【问题描述】:
我下载并编译了官方的Google's API for .Net成功删除了一些不兼容的引用项目(Mobile WP81项目)。
现在,我正在尝试开始使用 API 的第一步,我正在关注 Youtube API 的 official examples,我遇到的最大问题是我可以'不要重现示例,因为这些命名空间丢失了......所以我无法导入它们:
Imports Google.Apis.Authentication
Imports Google.Apis.Authentication.OAuth2
Imports Google.Apis.Authentication.OAuth2.DotNetOpenAuth
Imports Google.Apis.Samples.Helper
Imports Google.Apis.Youtube.v3
Imports Google.Apis.Youtube.v3.Data
这些是我在项目中编译和引用的程序集:
Google.Apis.Auth.dll
Google.Apis.Auth.PlatformServices.dll
Google.Apis.Core.dll
Google.Apis.dll
Google.Apis.PlatformServices.dll
加上这些外部依赖:
BouncyCastle.Crypto.dll
log4net.dll
Newtonsoft.Json.dll
Zlib.Portable.dll
我错过了什么?
更新
我认为存在两个问题,第一个是该示例似乎很旧,因为命名空间 Google.Apis.Authentication 似乎已更改为 Google.Apis.Auth,但是,我仍然找不到这些等效的命名空间:
Google.Apis.Authentication.OAuth2.DotNetOpenAuth
Google.Apis.Samples.Helper
Google.Apis.Youtube.v3
Google.Apis.Youtube.v3.Data
第二个问题,似乎我需要下载一个额外的谷歌库/依赖来获取 Youtube API 然后才能看到 Youtube 命名空间,我想是的,但我不知道在哪里下载。
【问题讨论】:
-
我有一些工作。我稍后会在这里发布。
标签: c# .net vb.net api google-api