Skip to content

Commit

Permalink
Merge pull request #384 from adityatandon007/aditya/docs
Browse files Browse the repository at this point in the history
Adds how to set up domain whitelabel and how to view email statistics
  • Loading branch information
thinkingserious committed Oct 24, 2017
2 parents 4302bff + b180613 commit 6114af5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ venv/
.tox/
profile*
README.txt
temp*.py
.coverage
coverage.xml
htmlcov
temp*.py
sendgrid.env
sendgrid.env

19 changes: 18 additions & 1 deletion USE_CASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This documentation provides examples for specific use cases. Please [open an iss

* [Transactional Templates](#transactional-templates)
* [Attachment](#attachment)
* [How to Setup a Domain Whitelabel](#domain_whitelabel)
* [How to View Email Statistics](#email_stats)
* [Asynchronous Mail Send](#asynchronous-mail-send)

<a name="transactional-templates"></a>
Expand Down Expand Up @@ -171,6 +173,20 @@ print(response.body)
print(response.headers)
```

<a name="domain_whitelabel"></a>
# How to Setup a Domain Whitelabel

You can find documentation for how to setup a domain whitelabel via the UI [here](https://sendgrid.com/docs/Classroom/Basics/Whitelabel/setup_domain_whitelabel.html) and via API [here](https://github.com/sendgrid/sendgrid-python/blob/master/USAGE.md#whitelabel).

Find more information about all of SendGrid's whitelabeling related documentation [here](https://sendgrid.com/docs/Classroom/Basics/Whitelabel/index.html).

<a name="email_stats"></a>
# How to View Email Statistics

You can find documentation for how to view your email statistics via the UI [here](https://app.sendgrid.com/statistics) and via API [here](https://github.com/sendgrid/sendgrid-python/blob/master/USAGE.md#stats).

Alternatively, we can post events to a URL of your choice via our [Event Webhook](https://sendgrid.com/docs/API_Reference/Webhooks/event.html) about events that occur as SendGrid processes your email.

<a name="asynchronous-mail-send"></a>
# Asynchronous Mail Send

Expand Down Expand Up @@ -254,4 +270,5 @@ if __name__ == "__main__":
loop = asyncio.get_event_loop()
task = asyncio.async(send_many(ems, sample_cb))
loop.run_until_complete(task)
```
```

0 comments on commit 6114af5

Please sign in to comment.