Created
May 12, 2016 12:06
-
-
Save coreone/17358980c22e6a8b9a963be07b7bf0cb to your computer and use it in GitHub Desktop.
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 | |
if [ -z "${1}" ]; then | |
PROG=$( basename $0 ) | |
echo "usage: ${PROG} <Google token>" | |
exit 1 | |
fi | |
token="${1}" | |
curl -H 'Accept: application/json' https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=${token} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment