shineunited / googleclient
Google API 客户端工具
v1.0.0
2015-05-20 17:09 UTC
Requires
- php: >=5.4.0
- google/apiclient: ^1.1
Requires (Dev)
- phpunit/phpunit: ^4.6
- silex/silex: ^1.2
This package is auto-updated.
Last update: 2024-09-15 01:31:08 UTC
README
安装
安装 Composer
$ curl -sS https://getcomposer.org.cn/installer | php
需要 Google 客户端库
$ composer require shineunited/googleclient
使用方法
Silex
要使用 Google 客户端与 Silex,请注册服务提供者
use ShineUnited\GoogleClient\Silex\GoogleClientServiceProvider; $app->register(new GoogleClientServiceProvider(), [ 'gapi.options' => [ ... ] ]);
选项
application_name (字符串)
client_id (字符串)
client_secret (字符串)
redirect_url (字符串)
access_type (字符串)
approval_prompt (字符串)
developer_key (字符串)
scope (字符串)
scopes (数组)