Skip to content

Commit 0f31219

Browse files
README.md update
1 parent 9dab83b commit 0f31219

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,27 @@ print(response.body)
9999
print(response.headers)
100100
```
101101

102-
## General v3 Web API Usage
102+
## General v3 Web API Usage (With Fluent Interface)
103103

104104
```python
105105
import sendgrid
106106
import os
107107

108108
sg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY'))
109-
response = sg.client.api_keys.get()
109+
response = sg.client.suppression.bounces.get()
110+
print(response.status_code)
111+
print(response.body)
112+
print(response.headers)
113+
```
114+
115+
## General v3 Web API Usage (Without Fluent Interface)
116+
117+
```python
118+
import sendgrid
119+
import os
120+
121+
sg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY'))
122+
response = sg.client._("suppression/bounces").get()
110123
print(response.status_code)
111124
print(response.body)
112125
print(response.headers)

0 commit comments

Comments
 (0)