Skip to content

Commit

Permalink
Add method to retrieve a list of all existing templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
HannahLehman committed Feb 22, 2016
1 parent a129acf commit 93278e7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/sailthru/client.rb
Expand Up @@ -234,6 +234,14 @@ def change_email(new_email, old_email, options = {})
data[:change_email] = old_email
api_post(:email, data)
end

# returns:
# Hash of response data.
#
# Get all templates
def get_templates(templates = {})
api_get(:template, templates)
end

# params:
# template_name, String
Expand Down

0 comments on commit 93278e7

Please sign in to comment.