Add Zendesk API recipe

This commit is contained in:
Alex Rock Ancelet
2019-09-25 11:36:55 +02:00
parent f5b77de6d4
commit 3b648467db
2 changed files with 18 additions and 0 deletions
@@ -0,0 +1,6 @@
services:
Zendesk\API\HttpClient:
arguments:
- '%env(ZENDESK_API_SUBDOMAIN)%'
calls:
- ['setAuth', ['basic', { username: '%env(ZENDESK_API_USERNAME)%', token: '%env(ZENDESK_API_TOKEN)%' }]]
@@ -0,0 +1,12 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"#0": "To retrieve an API token for your Zendesk server, you can read this doc:",
"#1": "https://support.zendesk.com/hc/en-us/articles/226022787-Generating-a-new-API-token-",
"ZENDESK_API_SUBDOMAIN": "",
"ZENDESK_API_USERNAME": "",
"ZENDESK_API_TOKEN": ""
}
}