Voidedpurchases API

157 views
Skip to first unread message

Joe Man

unread,
Feb 23, 2017, 12:07:39 PM2/23/17
to Google APIs Explorer Users Forum
Trying to use this:

I am using the PHP API client to do the call but it doesn't seem to work..

I am calling it like this

$product = $service->purchases_voidedpurchases_list->get("com.package.name");

But I am getting error
Undefined property: Google_Service_AndroidPublisher::$purchases_voidedpurchases_list 
PHP Fatal error:  Call to a member function get() on a non-object

I tried calling from the api explorer but im getting error saying the project is not linked but it already is linked.

John Boswell

unread,
Feb 23, 2017, 2:09:56 PM2/23/17
to Google APIs Explorer Users Forum
If this is one of the APIs you need to link your API key to your project for, you'll need to use your own credentials instead of API Explorer's demo credentials. You can set these in the settings menu in the top right of the API Explorer page.

As to your PHP API client issue, I suspect that's a completely unrelated issue. You may have more luck asking about that to their support or somewhere more general like Stack Overflow.

Joe Man

unread,
Feb 23, 2017, 4:58:28 PM2/23/17
to Google APIs Explorer Users Forum
I couldnt get the API explorer to work even with the correct api key and client id set.

I did however managed to get the PHP client to work.  I was calling the wrong method.
Reply all
Reply to author
Forward
0 new messages