spolischook/google-api-php-client

PHP 的 Google API 库

dev-master 2013-09-29 07:09 UTC

This package is auto-updated.

Last update: 2024-09-18 08:03:36 UTC


README

描述

Google API 客户端库使您能够与 Buzz、Moderator、Tasks 或 Latitude 等Google API 在您的服务器上协同工作。

这是一个从以下版本分支出来的:

当前版本托管于此

分支信息

该项目分支出来是为了稍微现代化Google API代码库。以下是一些更改:

  • 去除了所有require()语句。现在需要自动加载器
  • 重命名了所有类。现在所有内容都在GoogleApi命名空间中。
  • 添加了composer包信息(待办事项)
  • 去除了自动执行代码

现有的文档仍然适用,只需记住,现在您必须使用类似于apiHttpRequest的类,而应使用\GoogleApi\Io\HttpRequest

要求

项目页面

OAuth 2 指令

在此处报告缺陷或功能请求

在您的Feed阅读器中订阅项目更新

支持的示例应用程序

基本示例

<?php
include 'vendor/autoload.php';

$client = new \GoogleApi\Client();
$service = new \GoogleApi\Books\Service($client);

$optParams = array('filter' => 'free-ebooks');
$results = $service->volumes->listVolumes('Henry David Thoreau', $optParams);

foreach ($results['items'] as $item) {
  print($item['volumeInfo']['title'] . '<br>');
}