File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4209,7 +4209,7 @@ print $response->statusCode() . "\n";
4209
4209
print $response->body() . "\n";
4210
4210
print_r($response->headers());
4211
4211
```
4212
- ## Retrieve all transactional templates.
4212
+ ## Retrieve all transactional templates (legacy & dynamic) .
4213
4213
4214
4214
** This endpoint allows you to retrieve all transactional templates.**
4215
4215
@@ -4221,7 +4221,8 @@ Transactional templates are templates created specifically for transactional ema
4221
4221
4222
4222
4223
4223
``` php
4224
- $response = $sg->client->templates()->get();
4224
+ $query_params = json_decode('{"generations": "legacy,dynamic"}');
4225
+ $response = $sg->client->templates()->get(null, $query_params);
4225
4226
print $response->statusCode() . "\n";
4226
4227
print $response->body() . "\n";
4227
4228
print_r($response->headers());
Original file line number Diff line number Diff line change 25
25
}
26
26
27
27
////////////////////////////////////////////////////
28
- // Retrieve all transactional templates. #
28
+ // Retrieve all transactional templates (legacy & dynamic) . #
29
29
// GET /templates #
30
30
31
31
$ query_params = ['generations ' => 'legacy,dynamic ' ];
You can’t perform that action at this time.
0 commit comments