Using external 3rd party API


I need to use external 3rd party Email API.

The idea is to read emails and then process them in Django application (search for some patterns).
The goal is to avoid user to manually read emails and search for this pattern.

I have to make this REST API calls to this external 3rd party Email API and send Access Token as a header.
How can I do that in Django ?
I guess there must be some reliable package which could help me to do that - can you suggest one ?


I believe the best-known and most highly-recommended package for making external requests from Python is requests. You can write a view or a management command that uses requests to make calls to external APIs.