我在调用 Google Play Developer API 时遇到问题。
我已按照https://developers.google.com/android-publisher/authorization 上列出的所有步骤进行操作。这包括
然后,为了调用 purchase.subscriptions.get API,我使用了以下 CURL 命令:
(https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptions/get)
curl -X GET "https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}" -H "Authorization: Bearer {access_token}" -H "Accept: application/json" --compressed
Run Code Online (Sandbox Code Playgroud)
但是,我收到以下错误:
"error": {
"code": 401,
"message": "The …Run Code Online (Sandbox Code Playgroud)