Google Sheets API: The caller does not have permission

前端 未结 2 953
小蘑菇
小蘑菇 2020-12-24 03:57

I\'m trying to read the document from the cron:

https://sheets.googleapis.com/v4/spreadsheets/?key=

My document i

相关标签:
2条回答
  • 2020-12-24 04:09

    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.

    0 讨论(0)
  • 2020-12-24 04:16

    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.

    0 讨论(0)
提交回复
热议问题