google-sheets - 使用 Google Drive Api 获取 GoogleSheets 列表时出错
问题描述
我正在使用 google drive api 从驱动器中获取所有 google 表格
目前它给了我 403 错误我已经在开发者控制台中启用了 google drive api
在开发者控制台仪表板中,驱动 api 仍然显示 0 个请求,而其他 api 请求计数大于 100
至少没有。错误应该显示在仪表板中吗?在驱动器 api 的情况下,没有显示任何内容。可能是什么原因?
let sheets = await axios({
method: 'GET',
url: "https://www.googleapis.com/drive/v3/files?q=mimeType='application/vnd.google-apps.spreadsheet' and trashed=false",
headers: `Bearer ${token}`
});
这是代码
解决方案
推荐阅读
- wordpress - 创建用户时 Wordpress 上的 ACF 问题
- c# - 有没有更优雅的方法从 TimeSpan 中删除秒?
- javascript - 如何计算一个值中相同的文本
- python - 从列表中提取数据的函数
- dataframe - 从 MongoEngine 结果创建 Pandas DataFrame 的正确方法是什么?
- c# - SOAP API System.Net.WebException 响应流在错误响应中给出 BOM 字符
- angular - 升级 Angular 版本 10 后,离子原生网络无法按预期工作
- angular - 使用 Angular observable 定期查询 web api 并订阅
- symfony - Swagger 返回需要身份验证
- telegram - 如何验证 webhook 的请求来自 Telegram?