动态地从谷歌驱动器获取内容


fetch contents from google drive dynamically

我正在制作一个网站,从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中获得GOOGLE DRIVE的api。请帮助我通过这一点,这样我就可以在php中获得谷歌驱动器的API,并在其帮助下,我可以获取用户存储的谷歌驱动器的内容。

Google Drive确实有API。请参阅:您可以使用驱动平台做什么?

让它与PHP一起工作的快速启动:快速启动:在PHP中运行驱动器应用程序。它包括几个代码示例。