google-api-php-client icon indicating copy to clipboard operation
google-api-php-client copied to clipboard

batchUpdateContacts Undefined?

Open sjordan1975 opened this issue 3 years ago • 0 comments

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).

sjordan1975 avatar Apr 22 '22 22:04 sjordan1975