Created
December 20, 2010 23:04
-
-
Save kybernetyk/749182 to your computer and use it in GitHub Desktop.
i like nodejs more!
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
#!/usr/bin/env python | |
import httplib, urllib | |
params = urllib.urlencode( { | |
'characterID': 260629291, | |
'userid': 435411, | |
'apikey': '70E6A6C6FF04D9BBC04E4A08E8082FE2E8BEDD84B6A4CD4A9AE1C72E0B22CD0', | |
} ) | |
headers = { "Content-type": "application/x-www-form-urlencoded" } | |
conn = httplib.HTTPConnection("api.eve-online.com") | |
conn.request("POST", "/char/AccountBalance.xml.aspx", params, headers) | |
response = conn.getresponse() | |
print response.status, response.reason | |
data = response.read() | |
print data | |
conn.close |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment