HTTPS Google Shopping Status API Request

I am currently exploring a way to use the Google Buy Status API with only HTTP request requests, and I hit a brick wall. I have an application with Google Play and the owner of a Google Console account.

Basically, I just want to check the user's purchase status on my server. The only information I should use is the purchase token, product identifier and product package.

I have completed all the documentation on this subject at developer.android.com/google/play/billing/gp-purchase-status-api.html

The call to the HTTPS request I'm trying to make is (product names and valid strings replaced):

googleapis.com/androidpublisher/v1.1/applications/(com.product.myproduct)/InApp/(com.product.myproduct.product1)/purchases/(myproductpurchasestring)? Access_token = (myaccesstokenstring)

and my answer is always this:

{
 "error": {
  "errors": [
   {
    "domain": "androidpublisher",
    "reason": "developerDoesNotOwnApplication",
    "message": "This developer account does not own the application."
   }
  ],
  "code": 401,
  "message": "This developer account does not own the application."
 }
}

When polling my access token through this HTTP request request: googleapis.com/oauth2/v1/tokeninfo?access_token=(myaccesstokenstring)

this is my answer:

{
 "issued_to": "12345.apps.googleusercontent.com",
 "audience": "12345.apps.googleusercontent.com",
 "scope": "https://www.googleapis.com/auth/androidpublisher",
 "expires_in": 3319,
 "access_type": "offline"
}

So, according to the documentation at https://developers.google.com/accounts/docs/OAuth2#webserver , I need:

  • Authorize yourself and get an updated access token, which is generated from the "Client Identifier for Web Applications" in the "Access to API" section of the Google API console. I have done it.

  • API Google : HTTP- "" HTTPS- access_token = (mytokenstring). , .

:

, , : HTTPS ( ) ?

, - , , .

+4
1

, . , , . google .

!

+1

All Articles