From 4ce75d96f332f6f7d8720600ec5c395604f2915c Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Tue, 30 Apr 2019 15:44:03 -0700 Subject: [PATCH 1/2] API Key typo Fixes #791 --- use_cases/aws.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/use_cases/aws.md b/use_cases/aws.md index 0044acabf..2e63bd1f5 100644 --- a/use_cases/aws.md +++ b/use_cases/aws.md @@ -118,7 +118,7 @@ import os from sendgrid.helpers.mail import (From, To, PlainTextContent, HtmlContent, Mail) def handler(event, context): - sendgrid_client = sendgrid.SendGridAPIClient(api_key=os.environ.get('SENDGRID_API_KEY')) + sendgrid_client = sendgrid.SendGridAPIClient(os.environ.get('SENDGRID_API_KEY')) from_email = From("test@example.com") to_email = To("test@example.com") subject = "Sending with Twilio SendGrid is Fun" From 98f187ac641397033955e5b1e7f2c595db0a7444 Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Tue, 30 Apr 2019 15:46:16 -0700 Subject: [PATCH 2/2] API Key typo --- use_cases/error_handling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/use_cases/error_handling.md b/use_cases/error_handling.md index 84b7d339b..5ef2e2dac 100644 --- a/use_cases/error_handling.md +++ b/use_cases/error_handling.md @@ -11,7 +11,7 @@ There are also email specific exceptions located [here](https://github.com/sendg from sendgrid.helpers.mail import (From, To, Subject, PlainTextContent, HtmlContent, Mail) from python_http_client import exceptions - sendgrid_client = SendGridAPIClient(api_key=os.environ.get('SENDGRID_API_KEY')) + sendgrid_client = SendGridAPIClient(os.environ.get('SENDGRID_API_KEY')) from_email = From("dx@sendgrid.com") to_email = To("elmer.thomas@sendgrid.com") subject = Subject("Sending with Twilio SendGrid is Fun")