snapshotpl/zf-snap-google

There is no license information available for the latest version (0.9.0) of this package.

0.9.0 2015-03-27 16:34 UTC

This package is auto-updated.

Last update: 2024-11-29 05:03:13 UTC


README

Google API client for Zend Framework 2

Module uses official Google SDK as dependency.

Usage

$youtube = $serviceManager->get('Google_Service_YouTube');
$result = $youtube->search->listSearch('id', [
    'q' => 'Google',
    'maxResults' => 10,
    'videoEmbeddable' => 'true',
    'type' => 'video',
]);

How to install?

Via composer.json

{
  "require": {
    "snapshotpl/zf-snap-google": "0.9.*"
  }
}

and add module ZfSnapGoogle to application.config.php.

Configure your Google credentials by settings developer key:

return [
    'google' => [
        'client' => [
            'developer_key' => null,
        ],
    ],
];

Where can I get Google developer key?