Google Sheets API returns “The caller does not have permission” when using server key

后端 未结 5 1192
青春惊慌失措
青春惊慌失措 2020-12-01 03:56

I\'ve generated a server key in the API Manager and attempted to execute the following on my Mac:

curl \'https://sheets.googleapis.com/v4/spreadsheets/MyShee         


        
5条回答
  •  离开以前
    2020-12-01 04:35

    Make sure to pay attention to @KishanPatel's comment:

    Also, you can share this sheet with specific email Ex. your service account (project) email. "client_email": "XXXXX@northern-gasket-XXXX.iam.gserviceaccount.com", This will allow to access sheet by your script.

提交回复
热议问题