Google drive api 无法使用Postman从Google Drive下载文件
我想使用来自Postman的GoogleDrive,当我试图点击API时,我得到了一个错误 网址: 我得到:Google drive api 无法使用Postman从Google Drive下载文件,google-drive-api,postman,Google Drive Api,Postman,我想使用来自Postman的GoogleDrive,当我试图点击API时,我得到了一个错误 网址: 我得到: { "error": { "errors": [ { "domain": "global", "reason": "fileNotDownloadable", "message": "Only files with binary content can be downloaded. Use Export with
{
"error": {
"errors": [
{
"domain": "global",
"reason": "fileNotDownloadable",
"message": "Only files with binary content can be downloaded. Use Export with Google Docs files.",
"locationType": "parameter",
"location": "alt"
}enter code here
],
"code": 403,
"message": "Only files with binary content can be downloaded. Use Export with Google Docs files."
}
}
如果您试图获取pdf文件,则需要添加
responseType:'blob'
有关如何处理文件内容下载的更多信息,请查看此链接如果您提供更多详细信息,将有所帮助。您正在下载什么类型的文件?你可以发布一个请求的样本(比如你的邮递员的截图)吗?url:和标题授权令牌这个文件是pdf