Skip to content

Commit 079b37e

Browse files
tony-hothinkingserious
authored andcommitted
Update documentation for retrieving all templates (#764)
Add `generations` URI parameter to USAGE.md and example.
1 parent 02200e5 commit 079b37e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4167,7 +4167,7 @@ Transactional templates are templates created specifically for transactional ema
41674167

41684168

41694169
```csharp
4170-
var response = await client.RequestAsync(method: SendGridClient.Method.GET, urlPath: "templates");
4170+
var response = await client.RequestAsync(method: SendGridClient.Method.GET, urlPath: "templates?generations=legacy,dynamic");
41714171
Console.WriteLine(response.StatusCode);
41724172
Console.WriteLine(response.Body.ReadAsStringAsync().Result);
41734173
Console.WriteLine(response.Headers.ToString());

examples/templates/templates.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
// Retrieve all transactional templates.
2727
// GET /templates
2828

29-
var response = await client.RequestAsync(method: SendGridClient.Method.GET, urlPath: "templates");
29+
var response = await client.RequestAsync(method: SendGridClient.Method.GET, urlPath: "templates?generations=legacy,dynamic");
3030
Console.WriteLine(response.StatusCode);
3131
Console.WriteLine(response.Body.ReadAsStringAsync().Result);
3232
Console.WriteLine(response.Headers.ToString());

0 commit comments

Comments
 (0)