Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit bb8c152

Browse files
committed
Merge pull request maxgutman#4 from mverteuil/triggers_and_targets
Added triggers/targets endpoints
2 parents b25bf78 + c63239e commit bb8c152

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

zendesk/endpoints_v2.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,42 @@
665665
'valid_params' : ['ids'],
666666
'method': 'DELETE',
667667
},
668+
669+
# Targets
670+
'list_targets': {
671+
'path': '/targets.json',
672+
'method': 'GET',
673+
},
674+
'create_target': {
675+
'path': '/targets.json',
676+
'method': 'POST',
677+
},
678+
'get_target': {
679+
'path': '/targets/{{target_id}}.json',
680+
'method': 'GET',
681+
},
682+
'update_target': {
683+
'path': '/targets/{{target_id}}.json',
684+
'method': 'PUT',
685+
},
686+
687+
# Triggers
688+
'list_triggers': {
689+
'path': '/triggers.json',
690+
'method': 'GET',
691+
},
692+
'create_trigger': {
693+
'path': '/triggers.json',
694+
'method': 'POST',
695+
},
696+
'get_trigger': {
697+
'path': '/triggers/{{trigger_id}}.json',
698+
'method': 'GET',
699+
},
700+
'update_trigger': {
701+
'path': '/triggers/{{trigger_id}}.json',
702+
'method': 'PUT',
703+
},
668704
}
669705

670706
# Patch mapping table with correct HTTP Status expected

0 commit comments

Comments
 (0)