简体   繁体   English

Android Publisher API 购买订阅获得 403

[英]Android Publisher API Purchases Subscriptions Get 403

I'm trying to validate receipts using Google's API, but I am running into an issue where hitting this request.我正在尝试使用 Google 的 API 验证收据,但遇到了遇到此请求的问题。

https://www.googleapis.com/androidpublisher/v3/applications/packageName/purchases/subscriptions/subscriptionId/tokens/token

returns "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console."返回“用于调用 Google Play Developer API 的项目 ID 尚未在 Google Play Developer Console 中链接。”

but

https://www.googleapis.com/androidpublisher/v3/applications/packageName/inappproducts

returns the list of products which makes me believe I have authorization right, but just can't pinpoint why I can't get individual subscriptions.返回产品列表,这让我相信我有授权,但无法确定为什么我无法获得个人订阅。

I had to go into that product, make a small change, and saved.我不得不进入那个产品,做一个小的改变,然后保存。 That fixed the API.这修复了 API。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM