Skip to content

Sumit-Sahu/simplemail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://testapi.pythonanywhere.com/

Getting Started With Google Api

  1. If you don't already have a Google account, sign up.
  2. If you have never created a Google APIs Console project, read the Managing Projects page and create a project in the Google API Console.

Gmail Api

The Gmail API is a RESTful API that can be used to access Gmail mailboxes and send mail. All we need to use the Gmail API is the client library and an app that can authenticate as a Gmail user.

Setup

Above script uses OAuth 2.0 authentication.

Generate a client ID and client secret
Follow steps until you generate credentials.json. Save this file in your project folder.

How To Run Server

  1. run python3 -m venv venv
  2. run source venv/bin/activate
  3. run pip3 intall -r requirements.txt
  4. run export FLASK_APP="app.py"
  5. run flask run