简体   繁体   中英

Error In google sheets with Golang

when i follow the steps from https://developers.google.com/sheets/api/quickstart/go and run as go run quickstart.go

I got Error as below

2017/08/03 12:29:22 Unable to retrieve data from sheet. Get https://sheets.googleapis.com/v4/spreadsheets/14FXalPXVUHZ2SyNBUWJpfSzUSSimYYIR5mUU36r6_BQ/values/A%3AC?alt=json : oauth2: cannot fetch token: 401 Unauthorized Response: { "error" : "unauthorized_client" } exit status 1

我们必须在系统中删除凭证文件,因为oauth2协议的访问令牌在1天或一定时间后过期。对于新的访问令牌,您需要删除凭证文件并再次运行程序。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM