You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ A software bug is a demonstrable issue in the code base. In order for us to diag
46
46
47
47
Before you decide to create a new issue, please try the following:
48
48
49
-
1. Check the Github issues tab if the identified issue has already been reported, if so, please add a +1 to the existing post.
49
+
1. Check the GitHub issues tab if the identified issue has already been reported, if so, please add a +1 to the existing post.
50
50
2. Update to the latest version of this code and check if issue has already been fixed
51
51
3. Copy and fill in the Bug Report Template we have provided below
52
52
@@ -242,4 +242,4 @@ If you have any additional questions, please feel free to [email](mailto:dx@send
242
242
243
243
<aname="code-reviews"></a>
244
244
## Code Reviews
245
-
If you can, please look at open PRs and review them. Give feedback and help us merge these PRs much faster! If you don't know how, Github has some great [information on how to review a Pull Request](https://help.github.com/articles/about-pull-request-reviews/).
245
+
If you can, please look at open PRs and review them. Give feedback and help us merge these PRs much faster! If you don't know how, GitHub has some great [information on how to review a Pull Request](https://help.github.com/articles/about-pull-request-reviews/).
Sendgrid also supports local environment file `.env`. Copy or rename `.env_sample` into `.env` and update [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys) with your key.
60
+
SendGrid also supports local environment file `.env`. Copy or rename `.env_sample` into `.env` and update [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys) with your key.
61
61
62
-
### Windows
63
-
Temporarily set the environment variable(accesible only during the current cli session):
62
+
### Windows
63
+
Temporarily set the environment variable(accessible only during the current cli session):
Copy file name to clipboardExpand all lines: use_cases/aws.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Python 2.6, 2.7, 3.4, or 3.5 are supported by the sendgrid Python library, howev
13
13
14
14
Before starting this tutorial, you will need to have access to an AWS account in which you are allowed to provision resources. This tutorial also assumes you've already created a SendGrid account with free-tier access. Finally, it is highly recommended you utilize [virtualenv](https://virtualenv.pypa.io/en/stable/).
15
15
16
-
*DISCLAIMER*: Any resources provisioned here may result in charges being incurred to your account. Sendgrid is in no way responsible for any billing charges.
16
+
*DISCLAIMER*: Any resources provisioned here may result in charges being incurred to your account. SendGrid is in no way responsible for any billing charges.
17
17
18
18
19
19
## Getting Started
@@ -36,15 +36,15 @@ On the next menu, you have the option to choose what programming language you'll
36
36
37
37
Follow the steps on the next screen. Choose a name for your API key, such as "hello-email". Follow the remaining steps to create an environment variable, install the sendgrid module, and copy the test code. Once that is complete, check the "I've integrated the code above" box, and click the "Next: Verify Integration" button.
38
38
39
-
Assuming all the steps were completed correctly, you should be greeted with a success message. If not, go back and verify that everything is correct, including your API key environment varible, and Python code.
39
+
Assuming all the steps were completed correctly, you should be greeted with a success message. If not, go back and verify that everything is correct, including your API key environment variable, and Python code.
40
40
41
41
## Deploy hello-world app using CodeStar
42
42
43
-
For the rest of the tutorial, we'll be working out of the git repository we cloned from AWS earlier:
43
+
For the rest of the tutorial, we'll be working out of the Git repository we cloned from AWS earlier:
44
44
```
45
45
$ cd hello-email
46
46
```
47
-
note: this assumes you cloned the git repo inside your current directory. My directory is:
47
+
note: this assumes you cloned the Git repo inside your current directory. My directory is:
48
48
49
49
```
50
50
~/projects/hello-email
@@ -139,7 +139,7 @@ def handler(event, context):
139
139
'headers': {'Content-Type': 'application/json'}}
140
140
```
141
141
142
-
Note that for the most part, we've simply copied the intial code from the API verification with SendGrid. Some slight modifications were needed to allow it to run as a lambda function, and for the output to be passed cleanly from the API endpoint.
142
+
Note that for the most part, we've simply copied the initial code from the API verification with SendGrid. Some slight modifications were needed to allow it to run as a lambda function, and for the output to be passed cleanly from the API endpoint.
143
143
144
144
Change the `[email protected]` emails appropriately so that you may receive the test email.
Copy file name to clipboardExpand all lines: use_cases/slack_event_api_integration.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
# Integrate with Slack Events API
2
2
3
-
It's fairly straightforward to integrate Sendgrid with Slack, to allow emails to be triggered by events happening on Slack.
3
+
It's fairly straightforward to integrate SendGrid with Slack, to allow emails to be triggered by events happening on Slack.
4
4
5
5
For this, we make use of the [Official Slack Events API](https://github.com/slackapi/python-slack-events-api), which can be installed using pip.
6
6
7
7
To allow our application to get notifications of slack events, we first create a Slack App with Event Subscriptions as described [here](https://github.com/slackapi/python-slack-events-api#--development-workflow)
8
8
9
-
Then, we set `SENDGRID_API_KEY`_(which you can create on the Sendgrid dashboard)_ and `SLACK_VERIFICATION_TOKEN`_(which you can get in the App Credentials section of the Slack App)_ as environment variables.
9
+
Then, we set `SENDGRID_API_KEY`_(which you can create on the SendGrid dashboard)_ and `SLACK_VERIFICATION_TOKEN`_(which you can get in the App Credentials section of the Slack App)_ as environment variables.
10
10
11
11
Once this is done, we can subscribe to [events on Slack](https://api.slack.com/events) and trigger emails when an event occurs. In the example below, we trigger an email to `[email protected]` whenever someone posts a message on Slack that has the word "_help_" in it.
Copy file name to clipboardExpand all lines: use_cases/transational_templates.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
### Transactional Templates
2
2
3
-
Sendgrid transactional templates let you leverage power of [handlebars](https://handlebarsjs.com/)
3
+
SendGrid transactional templates let you leverage power of [handlebars](https://handlebarsjs.com/)
4
4
syntax to easily manage complex dynamic content in transactional emails.
5
5
6
6
For this example, we assume you have created a [transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/create_and_edit_transactional_templates.html). Following is the template content we used for testing.
0 commit comments