验证当地收据Google Play扑朔迷离
我想执行此类请求客户端:
Response response = await get(Uri.parse("https://androidpublisher.googleapis.com/androidpublisher/v3/applications/com.myappname.android/purchases/products/${details.productID}/tokens/$token"));
但是Google正在要求
授权范围
需要以下oauth范围:
我知道我应该创建我很清楚我要创建服务帐户或设置OAuth客户端,但我无法弄清楚如何将其链接到我的应用程序(客户端)中。
在我的生产应用中,我有服务方面的service_account.json
允许我这样做,但由于这次,我想这样做客户端(我知道这不是正确的方法出于多种原因去)。
如何链接 /使用服务帐户将成功的呼叫客户端端链接到androidPublisher < / code> url?
I would like to perform such request client side :
Response response = await get(Uri.parse("https://androidpublisher.googleapis.com/androidpublisher/v3/applications/com.myappname.android/purchases/products/${details.productID}/tokens/$token"));
But Google is asking for an OAuth token as stated in this documentation :
Authorization Scopes
Requires the following OAuth scope:
I am aware that i should create a service account or setup an OAuth client, but i could not figure out how to link this into my app (client).
In my production app i have service side the service_account.json
that allows me to do so but i would like to do it client side for some reasons this time (i am aware that this is not the right way to go for many reasons).
How can i link / use the service account to make a successful call client side to the androidpublisher
url ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论