mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Add Zapier notification agent
This commit is contained in:
parent
de6b6e8124
commit
304378f93b
3 changed files with 159 additions and 16 deletions
|
@ -3200,6 +3200,16 @@ class WebInterface(object):
|
|||
logger.warn(msg)
|
||||
return msg
|
||||
|
||||
@cherrypy.expose
|
||||
@cherrypy.tools.json_out()
|
||||
@requireAuth(member_of("admin"))
|
||||
def zapier_test_hook(self, zapier_hook='', **kwargs):
|
||||
success = notifiers.ZAPIER(config={'hook': zapier_hook})._test_hook()
|
||||
if success:
|
||||
return {'result': 'success', 'msg': 'Test Zapier webhook sent.'}
|
||||
else:
|
||||
return {'result': 'error', 'msg': 'Failed to send test Zapier webhook.'}
|
||||
|
||||
@cherrypy.expose
|
||||
@requireAuth(member_of("admin"))
|
||||
def set_notification_config(self, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue