diff --git a/USAGE.md b/USAGE.md index 6f260563..b8c36c7a 100644 --- a/USAGE.md +++ b/USAGE.md @@ -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.** @@ -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 diff --git a/examples/templates/templates.rb b/examples/templates/templates.rb index 49c16ffc..203b107f 100644 --- a/examples/templates/templates.rb +++ b/examples/templates/templates.rb @@ -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