beyerz/google-api-bundle
最新稳定版本:1.0.7
Composer 安装命令:
composer require beyerz/google-api-bundle
包简介
Symfony bundle to wrap the google api
README 文档
README
GoogleApiBundle
Easy Integration for Symfony2 projects requiring Google PHP SDK
Installation
Composer
composer require beyerz/google-api-bundle
Application Kernel
Add BeyerzGoogleApiBundle to the registerBundles() method of your application kernel:
public function registerBundles() { return array( new Beyerz\GoogleApiBundle\BeyerzGoogleApiBundle(), ); }
Config
Enable loading of the OGP service and setting default values by adding the following to
the application's config.yml file:
A Base and facebook library are currently supported, but you can add as many libraries with as many default values that you like
#BeyerzGoogleApiBundle beyerz_google_api: application_name: 'Sample Application Name' credentials_manager: 'Beyerz\GoogleApiBundle\Manager\CredentialsManager' client_secret_path: '/Resources/client_secret.json' scopes: - 'https://www.googleapis.com/auth/gmail.readonly' - 'https://www.googleapis.com/auth/gmail.send' - 'https://www.googleapis.com/auth/plus.login' - 'https://www.googleapis.com/auth/contacts' - 'https://www.googleapis.com/auth/contacts.readonly' - 'https://www.googleapis.com/auth/plus.login' - 'https://www.googleapis.com/auth/plus.me' - 'https://www.googleapis.com/auth/userinfo.email' - 'https://www.googleapis.com/auth/userinfo.profile' services: gmail: access_type: "offline" plus: access_type: "offline" people: access_type: "offline" oauth2: access_type: "offline"
Documentation
统计信息
- 总下载量: 1.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-28