【问题标题】:fetch contents from google drive dynamically从谷歌驱动器动态获取内容
【发布时间】: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 的内容。

【问题讨论】:

标签: php google-drive-api dropbox-api


【解决方案1】:

Google 云端硬盘确实有一个 API。见:What Can You Do with the Drive Platform?

让它与 PHP 一起工作的快速入门:Quickstart: Run a Drive App in PHP。它包括几个代码示例。

【讨论】:

  • 这还没有得到可以在我自己创建的网站上显示google drive内容的代码?
猜你喜欢
  • 1970-01-01
  • 2021-07-07
  • 1970-01-01
  • 1970-01-01
  • 2017-11-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多