Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Update documentation for retrieving a list of all templates #322

Merged
merged 4 commits into from
Sep 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3638,6 +3638,7 @@ puts response.status_code
puts response.body
puts response.headers
```

## Retrieve email statistics for your subusers.

**This endpoint allows you to retrieve the email statistics for the given subusers.**
Expand Down Expand Up @@ -4251,9 +4252,9 @@ Transactional templates are templates created specifically for transactional ema

### GET /templates


```ruby
response = sg.client.templates.get()
params = JSON.parse('{"generations": "legacy,dynamic"}')
response = sg.client.templates.get(query_params: params)
puts response.status_code
puts response.body
puts response.headers
Expand Down
5 changes: 3 additions & 2 deletions examples/templates/templates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
puts response.headers

##################################################
# Retrieve all transactional templates. #
# Retrieve all transactional templates (legacy & dynamic). #
# GET /templates #

response = sg.client.templates.get
params = JSON.parse('{"generations": "legacy,dynamic"}')
response = sg.client.templates.get(query_params: params)
puts response.status_code
puts response.body
puts response.headers
Expand Down