問題描述
我在使用 Google API 時遇到錯誤.有權(quán)連接 Google Drive 并添加新工作表并將數(shù)據(jù)插入其中.
Im getting error on using Google API. having right to connect with Google Drive and add new sheet and insert data into it.
它一直工作到昨天,但是當(dāng)我今天運(yùn)行應(yīng)用程序時.我收到錯誤:
It was working till yesterday but when i run the application today. Im getting error :
用戶給出令牌并嘗試訪問 DRIVE API 以獲取所有文件后出現(xiàn)錯誤
Error appears after users given token and tried to access the DRIVE API to get all the files
domain: "usageLimits"
extendedHelp: "https://code.google.com/apis/console"
message: "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
reason: "dailyLimitExceededUnreg"
我沒有更改任何設(shè)置.我的應(yīng)用程序訪問令牌啟用了以下 API.我是否必須添加/啟用更多 API 才能使其工作.
I have not changed any settings. Following API are enables for my application access token. Do i have to add / enable more API to make it work.
推薦答案
問題出在獲取訪問令牌時.我沒有提供正確的范圍.當(dāng)我將范圍更改為
The problem was while getting access token. I was not providing correct scopes. When i changed the scope to
https://spreadsheets.google.com/feeds https://docs.google.com/feedshttps://www.googleapis.com/auth/drive.file
效果很好
這篇關(guān)于Google Drive API 錯誤已超出未經(jīng)身份驗證使用的每日限制的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!