Google Play Developer API Documentation Reference: https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/get
I am using the Purchases.subscriptions: get
Method
I have call the request using GetPostMan and Unirest PHP:
GET https://www.googleapis.com/androidpublisher/v2/applications/packageName/purchases/subscriptions/subscriptionId/tokens/token
But returns:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "Login Required",
"locationType": "header",
"location": "Authorization"
}
],
"code": 401,
"message": "Login Required"
}
}
It requires me to Authorize first which is difficult to understand the documentation.
I am using Laravel 4.2.
With Amazon ec2 Linux
My goal is to get the status of subscribe users in my App, if the user is paid, expired, etc.
I have already done this: https://developers.google.com/android-publisher/authorization
Created my project, Turn the Google Play Android Developer API on and Create client ID. I don't know what to do next.