Skip to content

Commit be7be43

Browse files
Only use API Keys
1 parent e7ae3e6 commit be7be43

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ and ``SendGridServerError`` for 5xx errors.
6969
7070
from sendgrid import SendGridError, SendGridClientError, SendGridServerError
7171
72-
sg = sendgrid.SendGridClient(username, password, raise_errors=True)
72+
sg = sendgrid.SendGridClient('YOUR_SENDGRID_API_KEY', None, raise_errors=True)
7373
7474
try:
7575
sg.send(message)
@@ -86,13 +86,11 @@ encouraged to set ``raise_errors`` to ``True`` for forwards compatibility.
8686
Usage
8787
~~~~~
8888

89-
To begin using this library create a new instance of `SendGridClient` with your SendGrid credentials or a SendGrid API Key. API Key is the preferred method. API Keys are in beta. To configure API keys, visit https://app.sendgrid.com/settings/api_keys.
89+
To begin using this library create a new instance of `SendGridClient` with your SendGrid API Key. To configure API keys, visit https://app.sendgrid.com/settings/api_keys.
9090

9191
.. code:: python
9292
93-
sg = sendgrid.SendGridClient('sendgrid_username', 'sendgrid_password')
94-
# or
95-
sg = sendgrid.SendGridClient('sendgrid_apikey')
93+
sg = sendgrid.SendGridClient('YOUR_SENDGRID_API_KEY')
9694
9795
Methods
9896
~~~~~~~

0 commit comments

Comments
 (0)