I’m working with Google Sheets API v4 and trying to update spreadsheet data using a curl command. However, I keep running into a frustrating issue.
Here’s the curl request I’m attempting to make:
curl -v \
-H 'Authorization: Bearer ya29.GlxSB9-EiDh1Mn2EqhCslHvkaGyOX-P4_yDR4MXOt-WdHYQdFfwUJNMfljAFzZfS-YrrATUU2MAKj3R4BcMyOSw55KjJOC0EekE_qusj8GXIxFF3uaGZxGMdlB0IlQ' \
-X PUT \
https://sheets.googleapis.com/v4/spreadsheets/1mHrPXQILuprO4NdqTgrVKlGazvvzgCFqIphGdsmptD8/values/ProductList\!B2:E6\?valueInputOption\='{'"range": "ProductList!B2:E6","majorDimension": "ROWS","values": [["Product", "Price", "Available", "Delivery Date"]
The error message I get is:
curl: (3) [globbing] nested brace in column 189
I can’t figure out what’s causing this globbing issue with the nested braces. The command seems properly formatted to me but curl keeps throwing this error. Has anyone encountered this before and know how to fix it?