Created
September 24, 2014 19:36
-
-
Save epequeno/90e8dea4b8004179c3fd to your computer and use it in GitHub Desktop.
rax api stuff
This file contains hidden or 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
import requests | |
auth_url = "https://identity.api.rackspacecloud.com/v2.0/tokens" | |
json_header = {"Content-Type" : "application/json"} | |
auth = open("auth.json").read() | |
req = requests.post(auth_url, data=auth, headers=json_header) | |
print req.json()['access']['token']['id'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment