问题
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!
回答1:
Use version 2 of the API, there is a PHP example there you can use.
回答2:
When you are uploading make sure you specify the encryption type. Otherwise it would give this error.
来源:https://stackoverflow.com/questions/13382707/download-using-google-drive-api-no-error-but-not-result