This Django-Mailbox extension is focused on using the API of gmail for getting new emails we receive in our mailbox.
- Documentation for django-mailbox is available on ReadTheDocs.
Generate a client_secret.json file for the gmail api in google cloud. - Use Web Application as application type - Set the redirect_url to /django-mailbox/ in the correct hostname - copy the json file here
Run ./create_credentials.sh client_secret.json - visit url and accept permissions
Copy the output to settings.yaml
The URI to use the gmail api transport, contains the user email, the user id and the watch address in case we are using the pub sub feature of google cloud platform. An example of an URI with gmail api:
'gmailapi+ssl://<username>%40<yourdomain.com>:<user_id>@/adress/to/watch/pubsub'