Skip to content

Commit 3f6197a

Browse files
Update ChangeLog and README
1 parent e17b7f3 commit 3f6197a

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [6.3.3] - 2015-12-14
5+
###Added
6+
- Implemented the global suppressions /asm/suppressions/global endpoint [GET, POST, DELETE]
7+
48
## [6.3.2] - 2015-12-11
59
###Added
610
- Implemented the suppressions /asm/groups/:group_id/suppressions endpoint [GET, POST, DELETE]

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,42 @@ ver groupId = "<UNSUBSCRIBE GROUP ID>";
277277
HttpResponseMessage responseDelete1 = client.Suppressions.Delete(groupId, "[email protected]").Result;
278278
```
279279

280+
## Global Suppressions ##
281+
282+
Please refer to [our documentation](https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/global_suppressions.html) for further details.
283+
284+
Check if a recipient address is in the global suppressions group. [GET]
285+
286+
```csharp
287+
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
288+
var client = new SendGrid.Client(apiKey);
289+
// Leave off .Result for an asyncronous call
290+
string email = "[email protected]";
291+
HttpResponseMessage responseGet = client.GlobalSuppressions.Get(email).Result;
292+
```
293+
294+
Add recipient addresses to the global suppression group. [POST]
295+
296+
If the group has been deleted, this request will add the address to the global suppression.
297+
298+
```csharp
299+
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
300+
var client = new SendGrid.Client(apiKey);
301+
string[] emails = { "[email protected]", "[email protected]" };
302+
// Leave off .Result for an asyncronous call
303+
HttpResponseMessage responsePost = client.GlobalSuppressions.Post(emails).Result;
304+
```
305+
306+
Delete a recipient email from the global suppressions group. [DELETE]
307+
308+
```csharp
309+
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
310+
var client = new SendGrid.Client(apiKey);
311+
string email = "[email protected]";
312+
// Leave off .Result for an asyncronous call
313+
HttpResponseMessage responseDelete1 = client.GlobalSuppressions.Delete(email).Result;
314+
```
315+
280316
#How to: Testing
281317

282318
* Load the solution (We have tested using the Visual Studio Community Edition)

0 commit comments

Comments
 (0)