mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 15:16:55 +03:00
Add Zendesk API recipe
This commit is contained in:
@@ -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": ""
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user