gmail-cli
v1.0.38
Published
cli for gmail
Downloads
13
Readme
gmail-cli
cli for gmail
Installation
$ npm install -g gmail-cli
Usage
gmail-cli
Setup
Requires a client_id, client_secret, and redirect_uris.
client_id and secret can be obtained for Google's Gmail API here: https://console.developers.google.com/start/api?id=gmail
Walk-through
These are the steps to get programmatic access to the Gmail API.
Start here https://console.developers.google.com/start/api?id=gmail
Step 1
Click continue.
Step 2
Click go to credentials.
Step 3
Select user data.
Step 4
Add http://localhost:3000 to authorized origins. Add http://localhost:3000/callback to authorized callbacks.
Step 5
Download credentials.
They should look like:
{
"web": {
"client_id": "1234567891011-abcdefghijklmnopqrstuvwxyz.apps.googleusercontent.com",
"project_id": "amiable-dynamo-1234567",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://accounts.google.com/o/oauth2/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_secret": "s6jqlmn72hyq82hbcvaa2",
"redirect_uris": ["http://localhost:3000/callback"],
"javascript_origins": ["http://localhost:3000"]
}
}
License
MIT © Ben