Skip to content

Commit 0053d07

Browse files
Adding instruction for api_keys and asm_groups
1 parent 38939ed commit 0053d07

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

README.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,33 @@ add_content_id
223223
message.add_attachment('image.png', open('./image.png', 'rb'))
224224
message.add_content_id('image.png', 'ID_IN_HTML')
225225
message.set_html('<html><body>TEXT BEFORE IMAGE<img src="cid:ID_IN_HTML"></img>AFTER IMAGE</body></html>')
226+
227+
SendGrid's `WEB API v3`_
228+
------------------------
229+
230+
`APIKeys`_
231+
~~~~~~~~~~
232+
233+
List all API Keys belonging to the authenticated user
234+
235+
.. code:: python
236+
client = sendgrid.SendGridAPIClient(os.environ.get('SENDGRID_API_KEY'))
237+
status, msg = client.apikeys.get()
238+
239+
`ASM Groups`_
240+
~~~~~~~~~~~~~
241+
242+
Retrieve all suppression groups associated with the user.
243+
244+
.. code:: python
245+
client = sendgrid.SendGridAPIClient(os.environ.get('SENDGRID_API_KEY'))
246+
status, msg = client.asm_groups.get()
247+
248+
Get a single record
249+
250+
.. code:: python
251+
252+
status, msg = client.asm_groups.get(record_id)
226253
227254
SendGrid's `X-SMTPAPI`_
228255
-----------------------

0 commit comments

Comments
 (0)