Skip to content

Instantly share code, notes, and snippets.

View HectorBlisS's full-sized avatar
💭
Learning as a past time activity

BlisS HectorBlisS

💭
Learning as a past time activity
View GitHub Profile
@HectorBlisS
HectorBlisS / GoogleAuthenticationCurl.sh
Created May 30, 2023 03:37 — forked from LindaLawton/GoogleAuthenticationCurl.sh
Curl bash script for getting a Google Oauth2 Access token
# Tutorial https://www.daimto.com/how-to-get-a-google-access-token-with-curl/
# YouTube video https://youtu.be/hBC_tVJIx5w
# Client id from Google Developer console
# Client Secret from Google Developer console
# Scope this is a space seprated list of the scopes of access you are requesting.
# Authorization link. Place this in a browser and copy the code that is returned after you accept the scopes.
https://accounts.google.com/o/oauth2/auth?client_id=[Application Client Id]&redirect_uri=http://127.0.0.1&scope=[Scopes]&response_type=code
# Exchange Authorization code for an access token and a refresh token.