diff --git a/google/apiclient/2.10/config/packages/google_apiclient.yaml b/google/apiclient/2.10/config/packages/google_apiclient.yaml new file mode 100644 index 00000000..70b4b80c --- /dev/null +++ b/google/apiclient/2.10/config/packages/google_apiclient.yaml @@ -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)%']] diff --git a/google/apiclient/2.10/manifest.json b/google/apiclient/2.10/manifest.json new file mode 100644 index 00000000..05aa998e --- /dev/null +++ b/google/apiclient/2.10/manifest.json @@ -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" + } +}