如何在PHP中获得与Google Drive Api的共享链接
我正在使用php的谷歌驱动api。我确实在新创建的文件夹中上载了一个文件。但我不知道“如何才能获得新文件夹的共享url”。或者“我如何才能给予新电子邮件地址的“读者”权限” 我想共享一个文件夹。不归档如何在PHP中获得与Google Drive Api的共享链接,php,api,google-cloud-platform,drive,Php,Api,Google Cloud Platform,Drive,我正在使用php的谷歌驱动api。我确实在新创建的文件夹中上载了一个文件。但我不知道“如何才能获得新文件夹的共享url”。或者“我如何才能给予新电子邮件地址的“读者”权限” 我想共享一个文件夹。不归档 $result = $service->files->create( $file, array( 'data' => file_get_contents($file_path), 'mimeType' => 'applicat
$result = $service->files->create(
$file,
array(
'data' => file_get_contents($file_path),
'mimeType' => 'application/octet-stream',
)
);
文件Id:$fileId=$result['Id']代码>