Added Zendesk webhook

Zendesk works a lot like desk.com, it has triggers which use targets.
The triggers have a user defined template. Targets can also have place
holders that are posted, we add the ticket id and title here so we can
always construct the message subject.

(imported from commit 04e8e5c7c0fc5568201f252546f6ed42f282fd00)
This commit is contained in:
Jason Michalski
2014-01-10 17:55:27 -05:00
parent 3679889be2
commit 4b86ef59f1
3 changed files with 61 additions and 4 deletions

View File

@@ -160,6 +160,7 @@ urlpatterns += patterns('zerver.views',
url(r'^api/v1/external/desk$', 'webhooks.api_deskdotcom_webhook'),
url(r'^api/v1/external/stash$', 'webhooks.api_stash_webhook'),
url(r'^api/v1/external/freshdesk$', 'webhooks.api_freshdesk_webhook'),
url(r'^api/v1/external/zendesk$', 'webhooks.api_zendesk_webhook'),
url(r'^user_uploads/(?P<realm_id>\d*)/(?P<filename>.*)', 'rest_dispatch',
{'GET': 'get_uploaded_file'}),