Skip to content

Instantly share code, notes, and snippets.

@coreone
Created May 12, 2016 12:06
Show Gist options
  • Save coreone/17358980c22e6a8b9a963be07b7bf0cb to your computer and use it in GitHub Desktop.
Save coreone/17358980c22e6a8b9a963be07b7bf0cb to your computer and use it in GitHub Desktop.
#!/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