File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
All notable changes to this project will be documented in this file.
3
3
4
+ ## [ 6.3.4] - 2015-12-15
5
+ ###Added
6
+ - Implemented the global stats /asm/stats endpoint [ GET]
7
+
4
8
## [ 6.3.3] - 2015-12-14
5
9
###Added
6
10
- Implemented the global suppressions /asm/suppressions/global endpoint [ GET, POST, DELETE]
Original file line number Diff line number Diff line change 313
313
HttpResponseMessage responseDelete1 = client .GlobalSuppressions .Delete (email ).Result ;
314
314
```
315
315
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
+
316
332
#How to: Testing
317
333
318
334
* Load the solution (We have tested using the Visual Studio Community Edition)
You can’t perform that action at this time.
0 commit comments