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 11# Change Log
22All 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]
Original file line number Diff line number Diff line change 313313HttpResponseMessage 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)
You can’t perform that action at this time.
0 commit comments