roniest / google-apis-explorer

Automatically exported from code.google.com/p/google-apis-explorer
Apache License 2.0
0 stars 0 forks source link

androidpublisher.purchases.get return 401 with developerDoesNotOwnApplication #129

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. open the link 
https://developers.google.com/apis-explorer/#p/androidpublisher/v1.1/androidpubl
isher.purchases.get, 
2. turn on the "Authorize requests using OAuth 2.0" on the right side, add 
scope "https://www.googleapis.com/auth/androidpublisher", click "Authorize" 
button, then the browser opens a new login window with the url 
"https://accounts.google.com/ServiceLogin..." 
3.use my account "horizonlink888@gmail.com" login , after success, the previous 
page shows the "Authorize requests using OAuth 2.0" is turned on.
4. in the "packageName" section, fills "cn.fangcun_mxm_jp"(this application is 
published and really existed, try 
"https://play.google.com/store/apps/details?id=cn.fangcun_mxm_jp")
5. in the "subscriptionId" section, fills "1100m" which is an item in this app
6. in the "token" section, fills "aaaa" which is an fake token
7. click "Excute", the result is :

   401 Unauthorized

- Show headers -

{
 "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."
 }
}

my question is 
   1. why it still shows  "401 Unauthorized" ? I do really login.
   2. the reason string in body shows developerDoesNotOwnApplication, is it caused because "401 Unauthorized" ? 

Original issue reported on code.google.com by horizonl...@gmail.com on 23 Jan 2014 at 2:31