google-api-php-client
google-api-php-client copied to clipboard
batchUpdateContacts Undefined?
I attempted to implement batchUpdateContacts found here: https://developers.google.com/people/api/rest/v1/people/batchUpdateContacts
Psedo code:
$client = new Google_Client();
....
$service = new Google_Service_PeopleService($client);
$res = $service->people->batchUpdateContacts($contacts);
The PHP Google Client Library responds with undefined method error.
Additionally, I tried to make direct HTTP request per notes here: https://github.com/googleapis/google-api-php-client#making-http-requests-directly
POST URL: https://people.googleapis.com/v1/people:batchUpdateContacts
However, kept getting 404 or 400 as I tried different things.
I believe the Client is choking on the ":". However, I could not figure out how to turn off urlencode (which I believe should be an option in the underlying Guzzle library).