Skip to content

Commit 6b584b6

Browse files
Update Changelog and README
1 parent 8de88e4 commit 6b584b6

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-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.4] - 2015-12-15
5+
###Added
6+
- Implemented the global stats /asm/stats endpoint [GET]
7+
48
## [6.3.3] - 2015-12-14
59
###Added
610
- Implemented the global suppressions /asm/suppressions/global endpoint [GET, POST, DELETE]

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,22 @@ string email = "[email protected]";
313313
HttpResponseMessage responseDelete1 = client.GlobalSuppressions.Delete(email).Result;
314314
```
315315

316+
## Global Stats ##
317+
318+
Please refer to [our documentation](https://sendgrid.com/docs/API_Reference/Web_API_v3/Stats/global.html) for further details.
319+
320+
Global Stats provide all of your user’s email statistics for a given date range. [GET]
321+
322+
```csharp
323+
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
324+
var client = new SendGrid.Client(apiKey);
325+
var startDate = "2015-11-01"; // required
326+
var endDate = "2015-12-01";
327+
var aggregatedBy = "day"; // "week" or "month" are also options
328+
// Leave off .Result for an asyncronous call
329+
HttpResponseMessage responseGet = client.GlobalStats.Get(startDate, endDate, aggregatedBy).Result;
330+
```
331+
316332
#How to: Testing
317333

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

0 commit comments

Comments
 (0)