Created
March 6, 2015 22:43
-
-
Save underscorephil/339ca3c52546e2af2a5a to your computer and use it in GitHub Desktop.
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 urllib2 | |
from pprint import pprint as pp | |
response = urllib2.urlopen('https://api.service.softlayer.com/rest/v3/SoftLayer_Resource_Metadata/getUserMetadata') | |
metadata = response.read() | |
f = open('my.conf', 'w') | |
f.write(metadata) | |
f.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment