googleworkspace / php-samples

PHP samples for Google Workspace APIs
Apache License 2.0
288 stars 348 forks source link

Invalid JSON payload received when using null in update function. #39

Closed Latiyan closed 5 years ago

Latiyan commented 5 years ago

Here in the doc: https://developers.google.com/sheets/api/samples/writing#write_selectively_to_a_range

It's mentioned that we can pass null value if we do not want to update the cell and leave it as it is.

But it throws me an error "Invalid JSON payload received.", refer: http://bakingcode.org/hitesh/2019-17-25-07.png

Can you please help.

erickoledadevrel commented 5 years ago

This issue tracker is for bugs in the sample code. For issues with the API itself please see the support page:

https://developers.google.com/sheets/api/support

FWIW, I just tried passing a null in the "Try this API" sidebar here and it worked fine.

rendragnet commented 3 years ago

@Latiyan Did you sort this out? It seems to still be a bug in the google PHP API library :(