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

    145

    Version

    1.0.38

    License

    MIT

    Unpacked Size

    1.22 MB

    Total Files

    24

    Last publish

    Collaborators

    • focuswish
    • menubar