Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Created March 6, 2015 22:43
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 underscorephil/339ca3c52546e2af2a5a to your computer and use it in GitHub Desktop.
Save underscorephil/339ca3c52546e2af2a5a to your computer and use it in GitHub Desktop.
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