Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 Google 绘图中有一些文件,现在我想在我的站点中显示这些图像的预览。我正在使用 PHP 语言。我已经创建了我的 Google API,看到了这个链接。但我找不到解决问题的最佳解决方案。有人可以帮我解决这个问题。
遍历文件并使用thumbnailLink属性作为预览图像的链接。
thumbnailLink
$service = new Google_DriveService($client); $files = $service->files->list(); foreach ($files["items"] as &$file) { echo $file->thumbnailLink; }