diff options
author | Elmer Thomas <elmer@thinkingserious.com> | 2015-12-15 08:10:21 -0800 |
---|---|---|
committer | Elmer Thomas <elmer@thinkingserious.com> | 2015-12-15 08:10:21 -0800 |
commit | 6b584b6db30b6f3209ebde7d439cb7e2fc408de0 (patch) | |
tree | 71ccedf7b69cafa34178a63d110215162e1e12ad | |
parent | 8de88e418ea90cf3f03b4488793323aa8e76191a (diff) | |
download | sendgrid-csharp-6b584b6db30b6f3209ebde7d439cb7e2fc408de0.zip sendgrid-csharp-6b584b6db30b6f3209ebde7d439cb7e2fc408de0.tar.gz sendgrid-csharp-6b584b6db30b6f3209ebde7d439cb7e2fc408de0.tar.bz2 |
Update Changelog and README
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | README.md | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 703800b..dd42d96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Change Log All notable changes to this project will be documented in this file. +## [6.3.4] - 2015-12-15 +###Added +- Implemented the global stats /asm/stats endpoint [GET] + ## [6.3.3] - 2015-12-14 ###Added - Implemented the global suppressions /asm/suppressions/global endpoint [GET, POST, DELETE] @@ -313,6 +313,22 @@ string email = "example@example.com"; HttpResponseMessage responseDelete1 = client.GlobalSuppressions.Delete(email).Result; ``` +## Global Stats ## + +Please refer to [our documentation](https://sendgrid.com/docs/API_Reference/Web_API_v3/Stats/global.html) for further details. + +Global Stats provide all of your user’s email statistics for a given date range. [GET] + +```csharp +String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User); +var client = new SendGrid.Client(apiKey); +var startDate = "2015-11-01"; // required +var endDate = "2015-12-01"; +var aggregatedBy = "day"; // "week" or "month" are also options +// Leave off .Result for an asyncronous call +HttpResponseMessage responseGet = client.GlobalStats.Get(startDate, endDate, aggregatedBy).Result; +``` + #How to: Testing * Load the solution (We have tested using the Visual Studio Community Edition) |