【问题标题】:Updated Mirror Api .Net (v1.5.0.33-beta) client gave problems更新的 Mirror Api .Net (v1.5.0.33-beta) 客户端出现问题
【发布时间】:2013-10-31 06:54:30
【问题描述】:

今天我使用以下链接使用 nuget 包管理器更新了镜像 api 客户端。

https://www.nuget.org/packages/Google.Apis.mirror.v1

之后我重建了我的项目。但它给我带来了很多问题。

我需要澄清以下方法的新方法是什么。或者有没有我们可以使用的参考文档。

 Oauth2Service userService = new Oauth2Service(initializer);
 String userId = userService.Userinfo.Get().Fetch().Id;

我们可以使用 Excute() 方法代替 Fetch() 吗?

当我运行它时,它会出现以下错误

Method 'get_BasePath' in type 'Google.Apis.Oauth2.v2.Oauth2Service' from assembly 'Google.Apis.Oauth2.v2, Version=1.3.0.15233, Culture=neutral, PublicKeyToken=null' does not have an implementation

我们必须进行哪些修改才能应用此升级。

【问题讨论】:

    标签: .net google-mirror-api google-glass


    【解决方案1】:

    经过一番努力,我终于得到了这个作品。

    首先我删除所有 google api 引用。

    然后我安装以下库的预发布版本

    之后它给了我一些参考错误。所以我使用更新依赖项来修复它。

    这个Stackoverflow 的回答对我帮助很大。

    将所有Fetch() 替换为Execute()

    【讨论】:

    • 对于 Glass 团队,.NET QuickStart 应用程序是否会更新以反映最新 API 版本中引入的更改?诸如 Fetch/Execute 和 IAuthenticator 的弃用之类的事情?
    猜你喜欢
    • 1970-01-01
    • 2021-11-20
    • 2021-04-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-12
    相关资源
    最近更新 更多