From f528e073e56df3c5ed935bcbc7c0976fd3860b3c Mon Sep 17 00:00:00 2001 From: Andrew Joshua Loria Date: Thu, 25 Oct 2018 17:28:26 -0700 Subject: [PATCH 1/4] Create messages.py --- examples/messages/messages.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 examples/messages/messages.py diff --git a/examples/messages/messages.py b/examples/messages/messages.py new file mode 100644 index 000000000..1a53c569a --- /dev/null +++ b/examples/messages/messages.py @@ -0,0 +1,8 @@ +import sendgrid +import json +import os + + +sg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY')) + +#insert code here From 8fb33d9dd95e2ab7a996c5e79846f55eee08c821 Mon Sep 17 00:00:00 2001 From: Andrew Joshua Loria Date: Thu, 25 Oct 2018 17:50:51 -0700 Subject: [PATCH 2/4] Create email_activity.md --- use_cases/email_activity.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 use_cases/email_activity.md diff --git a/use_cases/email_activity.md b/use_cases/email_activity.md new file mode 100644 index 000000000..cd3e5cedd --- /dev/null +++ b/use_cases/email_activity.md @@ -0,0 +1,5 @@ +# Email Activity API + +In order to gain access to the Email Activity Feed API, you must [purchase](https://app.sendgrid.com/settings/billing/addons/email_activity) additional email activity history. + +To learn about Sendgrid's API to download information from the Email Activity feed, get started [here.](https://sendgrid.com/docs/API_Reference/Web_API_v3/Tutorials/getting_started_email_activity_api.html) From 885d8400ce27b922a3d3f89919dfb648e1c4c41e Mon Sep 17 00:00:00 2001 From: Andrew Joshua Loria Date: Thu, 25 Oct 2018 17:52:29 -0700 Subject: [PATCH 3/4] Update README.md --- use_cases/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/use_cases/README.md b/use_cases/README.md index f3aa7e361..3de15d0fd 100644 --- a/use_cases/README.md +++ b/use_cases/README.md @@ -11,6 +11,9 @@ This directory provides examples for specific use cases of this library. Please * [How to Deploy a simple Flask app, to send Email with SendGrid, on Heroku](flask_heroku.md) * [How to Setup a Domain Authentication](domain_authentication.md) * [How to View Email Statistics](email_stats.md) +* [How to Use the Email Activity Feed](email_activity.md) + + ### Working with Mail * [Asynchronous Mail Send](asynchronous_mail_send.md) From a06ce1a3c02d540740f2c063e44e49429ad94c76 Mon Sep 17 00:00:00 2001 From: Andrew Joshua Loria Date: Thu, 25 Oct 2018 19:07:09 -0700 Subject: [PATCH 4/4] Update USAGE.md --- USAGE.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/USAGE.md b/USAGE.md index bdd4dccfc..96c6ac08b 100644 --- a/USAGE.md +++ b/USAGE.md @@ -22,6 +22,7 @@ sg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY')) * [CLIENTS](#clients) * [CONTACTDB](#contactdb) * [DEVICES](#devices) +* [EMAIL ACTIVITY](#email-activity) * [GEO](#geo) * [IPS](#ips) * [MAIL](#mail) @@ -1755,6 +1756,21 @@ print response.status_code print response.body print response.headers ``` + + +# EMAIL ACTIVITY + +## Getting Started With the Email Activity Feed API + +**This endpoint allows you to query your messages.** + + +Email Activity Feed allows you to search and download a CSV of your recent email event activity. For more information on how to get started, please see our [Getting Started Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Tutorials/getting_started_email_activity_api.html). + + + + + # GEO