ziolko / spreadapi

Free REST API for Google Spreadsheet
https://spreadapi.roombelt.com
Other
87 stars 13 forks source link

Can't get it to work with curl #5

Closed gcleaves closed 3 years ago

gcleaves commented 3 years ago

Hi, any idea why I'm having trouble getting a response when using curl? It works fine with wget and Postman.

curl -L -X POST 'https://script.google.com/macros/s/hidden/exec' --data-raw '{"method": "GET", "sheet": "data", "key": "a_good_password"}'

As a response I get "Sorry, the file you have requested does not exist."

ziolko commented 3 years ago

Hi, The following command works for me. Perhaps you can build your request based on this?

curl -L https://script.google.com/macros/s/AKfycbyhsZxwsFru3uF5boPaVPqYH3lVHr-tOZKr_iFJ5eB6X8byg5-hMgs-UCsMvXsDn5gwNQ/exec --data '{"method": "GET", "sheet": "sheet"}'

Best, Mateusz