I want to use the Google's Purchase status API, to check the status of the purchased subscription at any time.
Here is what I am using :-
where my_package_name - name of my package my_subscription_id - subscription_id my_purchase_token - my purchase token of a valid purchase
But, it always give the following in response:-
{
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "Login Required",
"locationType": "header",
"location": "Authorization"
}
],
"code": 401,
"message": "Login Required"
}
}
I am unable to get what I am doing wrong. Please help.