Sona30 / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

get developerDoesNotOwnApplication, but use owner account #266

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
[Use this form for both apiclient and oauth2client issues]

What steps will reproduce the problem?
1. create a Flow object:    flow = OAuth2WebServerFlow()
2. create credentials:   credentials = flow.step2_exchange(code), code getted 
from flow.step1_get_authorize_url()
3. create athorized http clien: thttp_client = 
credentials.authorize(httplib2.Http())  
4. make a request to Google Play Android Developer API by template:
'https://www.googleapis.com/androidpublisher/v1/applications/{package_name}/subs
criptions/{subscription_id}/purchases/{token}'

my client_id is created for owner application account

i try to use for request httplib and apiclient.http, it habe the same result

What is the expected output? What do you see instead?
real output:
{
 "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."
 }
}
expected output:
{
  "kind": "androidpublisher#subscriptionPurchase",
  "initiationTimestampMsec": {long},
  "validUntilTimestampMsec": {long},
  "autoRenewing": {boolean}
}

What version of the product are you using? On what operating system?
1.1

Please provide any additional information below.
 - use Mac
 - use Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
 - use oauth2client.django_orm.Storage

Original issue reported on code.google.com by eos...@crystalnix.com on 7 May 2013 at 11:13