This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Injest / setup vars // TODO: error handling needed | |
client_id=$( cat parsedmarc/credentials.json | jq -r '.installed.client_id' ) | |
client_secret=$( cat parsedmarc/credentials.json | jq -r '.installed.client_secret' ) | |
scope="https://www.googleapis.com/auth/gmail.modify" | |
echo | |
echo "This script will take your OAuth Desktop Application credentials.json and use it to get a token to interact with the API" | |
sleep 2 |