Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

✉️ an example app to get you started on a google api cli app.🔓

NotificationsYou must be signed in to change notification settings

robbywashere-zz/gmail-app-oauth-flow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motiviation

An example app to get you started on a google api cli app.

You could very well run this once in order to get your access and refresh token, or you could modify the code a bit and integrate it into your own app.

This example follows the recommendations of'Option 2: Loopback IP address (macOS, Linux, Windows desktop)' listed onOAuth 2.0 for Mobile & Desktop Apps

[OAuth Flow] ---> [Loopback Redirect URI] ---> [Fetch Credentials] ---> [Output to Stdout]

Install

  • git clone https://github.com/robbywashere/gmail-app-oauth-flow

  • Follow thePrerequisites on googles developer portal.

  • Download the credentials from 'Prerequisites' instructions intogmail-app-oauth-flow root directory as.config.json

Run

  • Runnode main.js > .tokens.json

  • A browser window prompting you for an google auth flow (should) will pop-up

  • Complete auth, now.tokens.json will contain your token data

Notes

  • Compatible on node 9+

About

✉️ an example app to get you started on a google api cli app.🔓

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp