mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-24 00:32:17 +01:00
Update google/apiclient recipe (#1369)
This commit is contained in:
committed by
GitHub
parent
e74a00346e
commit
2caae3d04e
11
google/apiclient/2.10/config/packages/google_apiclient.yaml
Normal file
11
google/apiclient/2.10/config/packages/google_apiclient.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
services:
|
||||||
|
Google\Client:
|
||||||
|
class: Google\Client
|
||||||
|
calls:
|
||||||
|
# Authentication with "API key"
|
||||||
|
- [setDeveloperKey, ['%env(GOOGLE_API_KEY)%']]
|
||||||
|
# Authentication with "OAuth 2.0" using Client ID & Secret
|
||||||
|
- [setClientId, ['%env(GOOGLE_CLIENT_ID)%']]
|
||||||
|
- [setClientSecret, ['%env(GOOGLE_CLIENT_SECRET)%']]
|
||||||
|
# Authentication with "OAuth 2.0" or "Service account" using JSON
|
||||||
|
- [setAuthConfig, ['%env(resolve:GOOGLE_AUTH_CONFIG)%']]
|
||||||
11
google/apiclient/2.10/manifest.json
Normal file
11
google/apiclient/2.10/manifest.json
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"copy-from-recipe": {
|
||||||
|
"config/": "%CONFIG_DIR%/"
|
||||||
|
},
|
||||||
|
"env": {
|
||||||
|
"GOOGLE_API_KEY": "",
|
||||||
|
"GOOGLE_CLIENT_ID": "",
|
||||||
|
"GOOGLE_CLIENT_SECRET": "",
|
||||||
|
"GOOGLE_AUTH_CONFIG": "%kernel.project_dir%/path/to/file.json"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user