cURL not working while fetching Google API data

Please don’t name a table “table”.

Does this work locally?
What is the full response of a failed request?