summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md4
-rw-r--r--README.md16
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]
diff --git a/README.md b/README.md
index 19085d9..0bb4bb7 100644
--- a/README.md
+++ b/README.md
@@ -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)