使用Google Drive API下载无错误,但不是结果 [英] Download using Google Drive API NO ERROR but NOT RESULT

查看:159
本文介绍了使用Google Drive API下载无错误,但不是结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试使用此链接下载文件。我做了一些修改。

但是当我试图运行该文件时,它不会给我错误,但也不会导致结果。
它可以得到文件的downloadUrl,它也满足这个条件:

I'm trying to download a file using this link. I made some modification.
But when I'm trying to run the file, it does not give me error but no result too. It can get the downloadUrl of the file and it also satisfies this condition:

 if ($httpRequest->getResponseHttpCode() == 200) {
      echo "i'm here..";
      return $httpRequest->getResponseBody();
 } 

我在这里错过了什么?如何处理这个返回值?
提前致谢!

What am I missing here? How to process this returned value? Thanks in advance!

推荐答案

在上传时请确保指定加密类型。否则会出现此错误。

When you are uploading make sure you specify the encryption type. Otherwise it would give this error.

这篇关于使用Google Drive API下载无错误,但不是结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆