Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing the edit method from google play developer rest api

I successfully authenticated to google play developer rest api and I am getting also the refresh token but I can figure out how to make an edit requests. I have method signature at the following link:

https://developers.google.com/android-publisher/api-ref/edits/insert

I added the following header

Authorization:{{token_type}} {{access_token}}

but i cant figure out where to put the package name:

POST https://www.googleapis.com/androidpublisher/v2/applications/packageName/edits

I putted packageName like above using get and also as post parameter and in both cases i am encountered "404 not found" error. Please help.

like image 336
aurelianr Avatar asked Jul 28 '17 04:07

aurelianr


People also ask

How do you change apps on Google Play console?

Just go to "Store Listing" in the Android developer console, make your changes, and save them. Show activity on this post. Within Play Developer Console click on the app, then choose Store Presence then Store Listing on the left side menu and you'll be able to edit your short and long descriptions.


2 Answers

You can try

POST https://www.googleapis.com/androidpublisher/v2/applications/edits?id = packageid && expiryTimeSeconds = 20

GET https://www.googleapis.com/androidpublisher/v2/applications/**packageName**/edits/**editId**

according to https://developers.google.com/android-publisher/api-ref/edits#methods

like image 73
artgb Avatar answered Oct 22 '22 19:10

artgb


Please verify if you have followed all steps for authentication and authorization as shown here.

Since you are not getting 401 or 403, you might be sending the token correctly.

To call the api:

put your package name as a path paramters and specify the edit resource in the body. Please note that the edit resource is ignored but needs to be provided.

send your request like this:

POST https://www.googleapis.com/androidpublisher/v2/applications/yourPackageNameHere/edits

in the body:

{
  "id": "abcd",
  "expiryTimeSeconds": "asd"
}

make sure u provide content type in header as well. Authorization is also required in the headers as you mentioned.

Hope this helps. :)

like image 42
Nikit Prabhu Avatar answered Oct 22 '22 19:10

Nikit Prabhu