Skip to content

Instantly share code, notes, and snippets.

@phumpal
Created August 11, 2014 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phumpal/020486f2693eb0e07ec5 to your computer and use it in GitHub Desktop.
Save phumpal/020486f2693eb0e07ec5 to your computer and use it in GitHub Desktop.
Grab a Rackspace auth token
curl -s -d \
'{
"auth":
{
"RAX-KSKEY:apiKeyCredentials":
{
"username": "RACKSPACE_API_USERNAME",
"apiKey": "RACKSPACE_API_KEY"}
}
}' \
-H 'Content-Type: application/json' \
'https://identity.api.rackspacecloud.com/v2.0/tokens' | python -m json.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment