Neolithic Psychedelic Mushrooms
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

gmail-cli

1.0.38 • Public • Published

gmail-cli NPM version Build Status Dependency Status Coverage percentage

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

step-1

Click continue.

Step 2

step-2

Click go to credentials.

Step 3

step-3

Select user data.

Step 4

step-4

Add http://localhost:3000 to authorized origins. Add http://localhost:3000/callback to authorized callbacks.

Step 5

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

Keywords

install

npm i gmail-cli

Downloadsweekly downloads

17

version

1.0.38

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar