Skip to content

Commit eb81829

Browse files
authored
docs: Update documentation for retrieving a list of all templates (dynamic & legacy) (#717)
1 parent f86b003 commit eb81829

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Diff for: USAGE.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -4209,7 +4209,7 @@ print $response->statusCode() . "\n";
42094209
print $response->body() . "\n";
42104210
print_r($response->headers());
42114211
```
4212-
## Retrieve all transactional templates.
4212+
## Retrieve all transactional templates (legacy & dynamic).
42134213

42144214
**This endpoint allows you to retrieve all transactional templates.**
42154215

@@ -4221,7 +4221,8 @@ Transactional templates are templates created specifically for transactional ema
42214221

42224222

42234223
```php
4224-
$response = $sg->client->templates()->get();
4224+
$query_params = json_decode('{"generations": "legacy,dynamic"}');
4225+
$response = $sg->client->templates()->get(null, $query_params);
42254226
print $response->statusCode() . "\n";
42264227
print $response->body() . "\n";
42274228
print_r($response->headers());

Diff for: examples/templates/templates.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
}
2626

2727
////////////////////////////////////////////////////
28-
// Retrieve all transactional templates. #
28+
// Retrieve all transactional templates (legacy & dynamic). #
2929
// GET /templates #
3030

3131
$query_params = ['generations' => 'legacy,dynamic'];

0 commit comments

Comments
 (0)