Skip to content
Advertisement

Is it possible to use the Python requests library to send Gmail only using the Google Gmail API

Is it possible to use the Python requests library to send Gmail only using the Google Gmail API? I am trying to send Gmail with a python request library. But it ends up with an error 401. I want to know what is the proper way to send Gmail with Google Gmail API.

JavaScript

Advertisement

Answer

There is an example on in the documentation for sending with python You should consider using the Python Client library instead of coding this yourself.

JavaScript
Advertisement