snapshotpl / zf-snap-google
该软件包最新版本(0.9.0)没有提供许可证信息。
0.9.0
2015-03-27 16:34 UTC
Requires
- php: >=5.4.0
- google/apiclient: ~1.1
This package is auto-updated.
Last update: 2024-08-29 04:26:14 UTC
README
Zend Framework 2 的 Google API 客户端
该模块使用官方的 Google SDK 作为依赖项。
使用方法
$youtube = $serviceManager->get('Google_Service_YouTube'); $result = $youtube->search->listSearch('id', [ 'q' => 'Google', 'maxResults' => 10, 'videoEmbeddable' => 'true', 'type' => 'video', ]);
如何安装?
{ "require": { "snapshotpl/zf-snap-google": "0.9.*" } }
并在 application.config.php
中添加模块 ZfSnapGoogle
。
通过设置开发者密钥来配置您的 Google 凭据
return [ 'google' => [ 'client' => [ 'developer_key' => null, ], ], ];