在我可以获得令牌的 App Purchases 中?
In App Purchases where I can get the token?
官方页面https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/get
假设发送以下 HTTP 请求https://www.googleapis.com/androidpublisher/v3/applications/packageName/purchases/subscriptions/subscriptionId/tokens/token
作为最后一个参数,我们需要发送令牌。它显示 购买订阅时提供给用户设备的令牌。
但是订阅完成后没有返回对象,怎么获取呢?或者我错过了什么?
可以从购买对象中获取purchase.getPurchaseToken()
onPurchasesUpdated()
方法内部。购买成功后生成代币。
相关文档:
https://developer.android.com/google/play/billing/integrate#launch
官方页面https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/get
假设发送以下 HTTP 请求https://www.googleapis.com/androidpublisher/v3/applications/packageName/purchases/subscriptions/subscriptionId/tokens/token
作为最后一个参数,我们需要发送令牌。它显示 购买订阅时提供给用户设备的令牌。
但是订阅完成后没有返回对象,怎么获取呢?或者我错过了什么?
可以从购买对象中获取purchase.getPurchaseToken()
onPurchasesUpdated()
方法内部。购买成功后生成代币。
相关文档: https://developer.android.com/google/play/billing/integrate#launch