Google Sheets API v4 append request receives HTTP 401 response for public feeds using API Key

后端 未结 3 1819
情书的邮戳
情书的邮戳 2020-12-10 19:30

This is extremely similar to another question answered here about how to GET spreadsheet data, but I\'m trying to append data to a spreadsheet. Here\'s my s

相关标签:
3条回答
  • 2020-12-10 19:54

    https://developers.google.com/sheets/api/guides/authorizing#APIKey

    The page above states the following:

    Your application must use OAuth 2.0 to authorize requests. No other authorization protocols are supported. If your application uses Google Sign-In, some aspects of authorization are handled for you.

    0 讨论(0)
  • 2020-12-10 20:11

    This is currently broken. You can not edit the document (even if public) with only an APIKey.

    https://issuetracker.google.com/issues/73974970

    0 讨论(0)
  • 2020-12-10 20:12

    Requests that write to the spreadsheet require authentication credentials. Even if the spreadsheet is shared publicly, when writing through the API the write must be attributed to a user.

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