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" 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")