【问题标题】:Update Google Play Developer API to Version3将 Google Play 开发者 API 更新到版本 3
【发布时间】:2020-01-20 10:07:52
【问题描述】:
我正在构建并推送应用程序以从 Jenkins 播放商店,但它正在中断。我收到以下错误。
如何将已退出的应用升级到版本 3。
有人可以分享一下步骤吗?
【问题讨论】:
标签:
android
jenkins
google-play-developer-api
【解决方案1】:
这里是谷歌的instructions,数量不多。基本上,在您构建客户端的位置,请求 API 的 version='v3',以便发出的请求是 https://www.googleapis.com/androidpublisher/v3/ 而不是 v2 或 v1。所以对于 python,类似
service = googleapiclient.discovery.build(
serviceName='androidpublisher', version='v3', http=http,
cache_discovery=False)
这是一个谷歌示例:
# Authenticate and construct service.
service, flags = sample_tools.init(
argv,
'androidpublisher',
'v3',
__doc__,
__file__,
parents=[argparser],
scope='https://www.googleapis.com/auth/androidpublisher')