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

Commit

Permalink
Merge pull request maxgutman#4 from mverteuil/triggers_and_targets
Browse files Browse the repository at this point in the history
Added triggers/targets endpoints
  • Loading branch information
mverteuil committed Jun 11, 2014
2 parents b25bf78 + c63239e commit bb8c152
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions zendesk/endpoints_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,42 @@
'valid_params' : ['ids'],
'method': 'DELETE',
},

# Targets
'list_targets': {
'path': '/targets.json',
'method': 'GET',
},
'create_target': {
'path': '/targets.json',
'method': 'POST',
},
'get_target': {
'path': '/targets/{{target_id}}.json',
'method': 'GET',
},
'update_target': {
'path': '/targets/{{target_id}}.json',
'method': 'PUT',
},

# Triggers
'list_triggers': {
'path': '/triggers.json',
'method': 'GET',
},
'create_trigger': {
'path': '/triggers.json',
'method': 'POST',
},
'get_trigger': {
'path': '/triggers/{{trigger_id}}.json',
'method': 'GET',
},
'update_trigger': {
'path': '/triggers/{{trigger_id}}.json',
'method': 'PUT',
},
}

# Patch mapping table with correct HTTP Status expected
Expand Down

0 comments on commit bb8c152

Please sign in to comment.