Class: Iterable::PushTemplates
- Inherits:
-
ApiResource
- Object
- ApiResource
- Iterable::PushTemplates
- Defined in:
- lib/iterable/push_templates.rb
Overview
Interact with /templates/push API endpoints
Instance Attribute Summary
Attributes inherited from ApiResource
Instance Method Summary collapse
- #get(template_id, params = {}) ⇒ Object
-
#update(template_id, attrs = {}) ⇒ Iterable::Response
Update a push template.
- #upsert(client_template_id, attrs = {}) ⇒ Object
Methods inherited from ApiResource
#default_config, default_config, #initialize
Constructor Details
This class inherits a constructor from Iterable::ApiResource
Instance Method Details
#get(template_id, params = {}) ⇒ Object
34 35 36 37 |
# File 'lib/iterable/push_templates.rb', line 34 def get(template_id, params = {}) params['templateId'] = template_id Iterable.request(conf, '/templates/push/get', params).get end |
#update(template_id, attrs = {}) ⇒ Iterable::Response
Update a push template
47 48 49 50 |
# File 'lib/iterable/push_templates.rb', line 47 def update(template_id, attrs = {}) attrs['templateId'] = template_id Iterable.request(conf, '/templates/push/update').post(attrs) end |