Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 40 lines (29 sloc) 1.297 kb
6f03ebb1 » chirags@google.com
2011-09-02 Add a README file for the project.
1 Google APIs Client Library for PHP
2 =====================================
3
4 == Description
5 The Google API Client Library enables you to work with Google APIs such as Buzz, Moderator, Tasks, or Latitude on your server.
6
7 Requirements:
8 PHP 5.2.x or higher [http://www.php.net/]
9 PHP Curl extension [http://www.php.net/manual/en/intro.curl.php]
10 PHP JSON extension [http://php.net/manual/en/book.json.php]
11
12 Project page:
13 http://code.google.com/p/google-api-php-client
14
15 OAuth 2 instructions:
16 http://code.google.com/p/google-api-php-client/wiki/OAuth2
17
18 Report a defect or feature request here:
19 http://code.google.com/p/google-api-php-client/issues/entry
20
21 Subscribe to project updates in your feed reader:
22 http://code.google.com/feeds/p/google-api-php-client/updates/basic
23
24 Supported sample applications:
25 http://code.google.com/p/google-api-php-client/wiki/Samples
26
27 == Basic Example
28 <?php
29 require_once 'path/to/src/apiClient.php';
30 require_once 'path/to/src/contrib/apiBooksService.php';
31
32 $client = new apiClient();
33 $service = new apiBooksService($client);
34
35 $optParams = array('filter' => 'free-ebooks');
36 $results = $service->volumes->listVolumes('Henry David Thoreau', $optParams);
37
38 foreach ($results['items'] as $item) {
39 print($item['volumeInfo']['title'] . '<br>');
40 }
Something went wrong with that request. Please try again.