New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gmail-cli

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gmail-cli

cli for gmail

latest
Source
npmnpm
Version
1.0.38
Version published
Maintainers
2
Created
Source

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

gmail

FAQs

Package last updated on 11 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts