Skip to content

Instantly share code, notes, and snippets.

@elight
Last active August 29, 2015 14:03
Show Gist options
  • Save elight/3b739682a89793b50e6e to your computer and use it in GitHub Desktop.
Save elight/3b739682a89793b50e6e to your computer and use it in GitHub Desktop.
export body="{\"auth\":{\"RAX-KSKEY\":\"apiKeyCredentials\":{\"username\":\"$RAX_USERNAME\", \"apiKey\":\"$RAX_API_KEY\"}}}"
echo $body
echo
curl -v -s https://identity.api.rackspacecloud.com/v2.0/tokens -X 'POST' \
-d $body \
-H 'Content-Type: application/json' | python -m json.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment