diff options
author | Elmer Thomas <elmer@thinkingserious.com> | 2016-07-05 13:26:49 -0700 |
---|---|---|
committer | Elmer Thomas <elmer@thinkingserious.com> | 2016-07-05 13:26:49 -0700 |
commit | 666738924462651e1bec97263cd7ae23eda1f276 (patch) | |
tree | 50d64bf4537885c0f336981bb9caf8a12e6b2b31 /examples/asm/asm.cs | |
parent | 69adfeebe0d0468956bb3803687a8aa7bf2dda72 (diff) | |
download | sendgrid-csharp-666738924462651e1bec97263cd7ae23eda1f276.zip sendgrid-csharp-666738924462651e1bec97263cd7ae23eda1f276.tar.gz sendgrid-csharp-666738924462651e1bec97263cd7ae23eda1f276.tar.bz2 |
swagger/oai updates + accept header fix
Diffstat (limited to 'examples/asm/asm.cs')
-rw-r--r-- | examples/asm/asm.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/asm/asm.cs b/examples/asm/asm.cs index 00758ef..fb2a5c6 100644 --- a/examples/asm/asm.cs +++ b/examples/asm/asm.cs @@ -99,6 +99,24 @@ Console.WriteLine(response.Headers.ToString()); Console.ReadLine(); //////////////////////////////////////////////////////// +// Search for suppressions within a group +// POST /asm/groups/{group_id}/suppressions/search + +string data = @"{ + 'recipient_emails': [ + 'exists1@example.com', + 'exists2@example.com', + 'doesnotexists@example.com' + ] +}"; +var group_id = "test_url_param"; +dynamic response = sg.client.asm.groups._(group_id).suppressions.search.post(requestBody: data); +Console.WriteLine(response.StatusCode); +Console.WriteLine(response.Body.ReadAsStringAsync().Result); +Console.WriteLine(response.Headers.ToString()); +Console.ReadLine(); + +//////////////////////////////////////////////////////// // Delete a suppression from a suppression group // DELETE /asm/groups/{group_id}/suppressions/{email} |