Skip to content

Instantly share code, notes, and snippets.

View maniankara's full-sized avatar

Anoop Vijayan Maniankara maniankara

View GitHub Profile
@maniankara
maniankara / gettoken.sh
Last active January 7, 2024 16:18 — forked from eruffaldi/gettoken.sh
Google OAuth 2.0 full example bash script.
#!/bin/bash
# Bash script for generating OAuth token for Google admin user fetching
#1) on https://console.developers.google.com/ register project and associate API from library
# OUTPUT: client_id,client_secret
client_id="..."
client_secret="...."
#2) get authorization code at the following link using web browser
# OUTPUT: code