【发布时间】:2014-10-28 12:50:52
【问题描述】:
我正在制作一个网站,我在其中从 Dropbox 和 google 驱动器中获取内容。 我有 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 中获取 google drive 的 API,并在它的帮助下获取用户存储的 google drive 的内容。
【问题讨论】:
-
-
转到 google.com,输入“google drive php”。第一个结果。
标签: php google-drive-api dropbox-api