I\'m trying to read the document from the cron:
https://sheets.googleapis.com/v4/spreadsheets/
My document i
After seeing HoverPhoenix comment, I change access of My sheet to ** Anyone with link** on Viewer mode.
After changing the access it is working properly. If Data security is the concern then the best option is to use OAuth 2.0 Client IDs as credentials.
As @thinktwice said it is suggested to turn on the Anyone with the link
option in the sheet.
I was using python and this created_spreadsheet.share('', role='reader', type='anyone')
worked for me.