gpt4 book ai didi

google-api - 在 2019 年 3 月 25 日截止日期为 3 月之前迁移 Google API 实用程序

转载 作者:行者123 更新时间:2023-12-01 13:22:08 25 4
gpt4 key购买 nike

我昨天收到了一封来自 Google 开发团队的电子邮件,其中包含以下公告:

We are writing to let you know that the JSON-RPC and Global HTTP batch endpoints will be deprecated on March 26, 2018, and no longer functional from March 25, 2019.

他们的指示是:<​​/p>

Please migrate your applications for your affected projects listed below before March 25, 2019. We know that these changes have customer impact and have worked to make the transition steps as clear as possible. Detailed information on how to migrate your existing API Client Libraries can be found on the Google Developers Blog post.

我看了那篇文章,它说:

Google API Client Libraries have been regenerated to no longer make requests to the global HTTP batch endpoint. Clients using these libraries must upgrade to the latest version. Clients not using the Google API Client Libraries and/or making custom calls to the JSON-RPC endpoint or HTTP batch endpoint will need to make the changes outlined below.

在给我的电子邮件中,他们特别声明我的项目将受到影响。它是与 V3 Calendar API 一起工作的 Visual Basic .Net 应用程序.我一直在使用批处理工具。

目前我使用的是 Google API 版本 1.29.2 但我看到有更新的版本:

Nuget Package Updates

我真的不清楚我需要做什么才能符合此调整?上述博文鼓励我们在需要帮助时使用 google-api 标记问题。

帮助!谢谢!


这是我如何使用批量请求的示例:

Dim oBatchRequest = New Google.Apis.Requests.BatchRequest(m_Service)
...
...
Dim oTaskDelete = oBatchRequest.ExecuteAsync()
oTaskDelete.Wait()

现在我很清楚哪个版本的 API 库使用了他们通过电子邮件发送给我的这种新方法。如果有帮助,我使用的范围是:

m_Scopes.Add("https://www.googleapis.com/auth/calendar "
"https://www.google.com/m8/feeds/ "
"https://mail.google.com/")

我刚刚将包从 v1.29.2 更新到 v1.32.2 并进行了完整编译,没有出现任何错误。我进行了测试同步,看起来它正在运行。

我的 Inno Setup 脚本当前在用户计算机上安装这些文件:

; Google Calendar Interface v3
Source: "Google.Apis.Auth.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "Google.Apis.Auth.PlatformServices.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "Google.Apis.Calendar.v3.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "Google.Apis.Core.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "Google.Apis.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "Google.Apis.PlatformServices.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "Google.GData.Client.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "Google.GData.Contacts.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "Google.GData.Extensions.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "GoogleAuthandSync.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "GoogleAuthandSync.exe.config"; DestDir: "{app}"; Flags: ignoreversion
Source: "Microsoft.Threading.Tasks.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "Microsoft.Threading.Tasks.Extensions.Desktop.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "Microsoft.Threading.Tasks.Extensions.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "Newtonsoft.Json.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "System.Net.Http.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "System.Net.Http.Extensions.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "System.Net.Http.Primitives.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "Zlib.Portable.dll"; DestDir: "{app}"; Flags: ignoreversion

我的文件夹实际上有这些文件:

D:\My Programs\2017\GoogleAuthandSync\GoogleAuthandSync\bin\Release>dir *.dll
Volume in drive D is DATA
Volume Serial Number is A8B0-A5C6

Directory of D:\My Programs\2017\GoogleAuthandSync\GoogleAuthandSync\bin\Release

26/04/2016 12:16 2,236,416 BouncyCastle.Crypto.dll
08/02/2018 11:32 105,472 Google.Apis.Auth.dll
08/02/2018 11:32 5,120 Google.Apis.Auth.PlatformServices.dll
26/03/2018 08:38 89,600 Google.Apis.Calendar.v3.dll
08/02/2018 11:32 67,072 Google.Apis.Core.dll
08/02/2018 11:32 71,680 Google.Apis.dll
08/02/2018 11:32 4,096 Google.Apis.PlatformServices.dll
25/06/2013 11:24 212,992 Google.GData.Client.dll
25/06/2013 11:33 29,184 Google.GData.Contacts.dll
25/06/2013 11:27 90,112 Google.GData.Extensions.dll
08/03/2017 20:26 276,480 log4net.dll
18/06/2017 13:57 653,824 Newtonsoft.Json.dll
13/08/2013 01:19 27,296 System.Data.DataSetExtensions.dll
13/08/2013 01:19 1,172,568 System.Data.dll
13/08/2013 01:19 63,064 System.Net.dll
05/09/2017 14:54 197,984 System.Net.Http.dll
19/02/2015 21:10 22,232 System.Net.Http.Extensions.dll
19/02/2015 21:10 21,720 System.Net.Http.Primitives.dll
05/11/2016 05:57 39,872 System.Security.Cryptography.Algorithms.dll
05/11/2016 05:57 23,480 System.Security.Cryptography.Encoding.dll
05/11/2016 05:57 22,816 System.Security.Cryptography.Primitives.dll
05/09/2017 14:54 38,872 System.Security.Cryptography.X509Certificates.dll
13/08/2013 01:19 921,688 System.XML.dll
13/08/2013 01:19 43,112 System.Xml.Linq.dll
22/06/2015 09:00 81,920 Zlib.Portable.dll
25 File(s) 6,518,672 bytes
0 Dir(s) 717,216,362,496 bytes free

所以这些看起来额外:

26/04/2016  12:16         2,236,416 BouncyCastle.Crypto.dll
08/03/2017 20:26 276,480 log4net.dll
13/08/2013 01:19 27,296 System.Data.DataSetExtensions.dll
13/08/2013 01:19 1,172,568 System.Data.dll
13/08/2013 01:19 63,064 System.Net.dll
05/11/2016 05:57 39,872 System.Security.Cryptography.Algorithms.dll
05/11/2016 05:57 23,480 System.Security.Cryptography.Encoding.dll
05/11/2016 05:57 22,816 System.Security.Cryptography.Primitives.dll
05/09/2017 14:54 38,872 System.Security.Cryptography.X509Certificates.dll

我必须要展示它们吗?

最佳答案

如果您只调用单个 API (Calendar v3),那么您的批处理请求将是同质的,除了升级您的客户端库外,您不需要更改代码。

关于google-api - 在 2019 年 3 月 25 日截止日期为 3 月之前迁移 Google API 实用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49507569/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com