Php 从谷歌硬盘动态获取内容

Php 从谷歌硬盘动态获取内容,php,google-drive-api,dropbox-api,Php,Google Drive Api,Dropbox Api,我正在制作一个网站,从dropbox和google drive获取内容。 我已获得dropbox的api: <?php /* Please supply your own consumer key and consumer secret */ $consumerKey = ''; $consumerSecret = ''; include 'Dropbox/autoload.php'; session_start(); $oauth = new Dropbox_OAuth_PHP($

我正在制作一个网站,从dropbox和google drive获取内容。 我已获得dropbox的api:

<?php

/* Please supply your own consumer key and consumer secret */
$consumerKey = '';
$consumerSecret = '';

include 'Dropbox/autoload.php';

session_start();
$oauth = new Dropbox_OAuth_PHP($consumerKey, $consumerSecret);

// If the PHP OAuth extension is not available, you can try
// PEAR's HTTP_OAUTH instead.
// $oauth = new Dropbox_OAuth_PEAR($consumerKey, $consumerSecret);

$dropbox = new Dropbox_API($oauth);
?>
但是我还没有php中的GoogleDrive api。
请帮助我完成这项工作,这样我就可以在php中获得google drive的API,并通过它获取用户存储的google drive内容。

google drive确实有API。见:


让它与PHP一起工作的快速入门:。它包括几个代码示例。

如果有问题要求我们推荐或查找书籍、工具、软件库、教程或其他非网站资源,则会导致堆栈溢出,因为这些问题往往会吸引自以为是的答案和垃圾邮件。请访问google.com,键入google drive php。第一个结果。这可能会帮助你:这还没有代码,我可以在我自己创建的网站上显示谷歌硬盘的内容?