I am needing help getting the correct syntax for Google Sheets API when 
using cURL.

I have the OAUTH 2.0 Authentication working with the Google Drive API and I 
am successful with the following commands. I am using a Windows Shell with 
cURL.

This works:

curl -H "Authorization: Bearer 
ya29.iQJpt0aDNHj5Qw9GCxhxVfO7DE3E9TpLBybQOqBPNYo1wru6yI_kPcFN_bSlxcC2hpWVWw" 
https://www.googleapis.com/drive/v2/files


I can not access anything in the spreadsheets feeds. Here is what I am 
trying:


curl -H "Authorization: Bearer 
ya29.jAJOZ8bc8tWQlC6ex7Ez1i_8enmlsQgflNAnuCAU2PwrlJrq-KN_bYpt1st9dqVx4--G" 
https://spreadsheets.google.com/feeds/cells/(My API Key Here)/
12NYJq3aDhPijh1vLmGdANYTFw-OZGUWTWl6jG2kOZVs/private/full


and I get this response. "The spreadsheet at this URL could not be found. 
Make sure that you have the right URL and that the owner of the spreadsheet 
hasn't deleted it."


Is it something with my cURL format? My authorization? Or even the file id? 
 My API Key is correct.


Here is the file I am trying to access. 
 
https://docs.google.com/spreadsheets/d/12NYJq3aDhPijh1vLmGdANYTFw-OZGUWTWl6jG2kOZVs/edit#gid=0


Thank you!



-- 
You received this message because you are subscribed to the Google Groups 
"Google Spreadsheets API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to