Closed GoogleCodeExporter closed 8 years ago
Looks like that API does not support service accounts:
https://code.google.com/p/google-api-ruby-client/issues/detail?id=72
Original comment by ianbar...@google.com
on 24 Jul 2013 at 2:24
I think my problem was because I was trying to use Service Accounts with a
Google Apps Gmail own account ( non @gmail.com account ).
I had to delegate domain-wide authority to my service account.
And I had to instantiate a Android Publisher Service as follows: ( only founded
in Google Api Drive documentation ).
I added "sub" parameter programmatically in Google_AssertionCredentials like
follows:
$auth = new Google_AssertionCredentials(
SERVICE_ACCOUNT_NAME,
'https://www.googleapis.com/auth/androidpublisher',
$key);
$auth->sub = "myown@email.com";
$client->setAssertionCredentials($auth);
The documentation in Google Play Android Developer API is very poor, and Google
Support doesn't help, they redirects you to documentation. Google PHP
developers even don't know how Service Accounts works.
In spite of having found the answer by myself, Google needs to improve all new
Google Play In-app Billing API version 3.
Original comment by sergi...@gmail.com
on 2 Aug 2013 at 12:38
Original issue reported on code.google.com by
sergi...@gmail.com
on 21 Jul 2013 at 7:14