我需要得到的文件大小的id与谷歌驱动应用程序接口,v3和php。我使用google drive API客户端库v3。我可以连接到google磁盘,但我不知道如何通过id获取文件大小。
发布于 2020-07-17 17:08:32
对不起,那是个不眠之夜。
$drive = new Google_Service_Drive($client);
$file_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
$optpParams = array(
'fields' => "size"
);
$response = $drive->files->get($file_id, $optpParams);
echo $response->size;https://stackoverflow.com/questions/62950230
复制相似问题