Skip to content

Instantly share code, notes, and snippets.

@solanoize
Created January 8, 2015 01:42
Show Gist options
  • Select an option

  • Save solanoize/d89e1c55b6cc1100aad1 to your computer and use it in GitHub Desktop.

Select an option

Save solanoize/d89e1c55b6cc1100aad1 to your computer and use it in GitHub Desktop.
client XMLRPC for android Python
import xmlrpclib
server = raw_input("Server IP : ")
username = raw_input("USERNAME : ")
email = raw_input("EMAIL : ")
servAddr = "http://%s:8080" % server
s = xmlrpclib.ServerProxy(servAddr)
methods = s.system.listMethods()
'''
for m in methods:
print m
'''
print "Create User", s.createUser(username,email)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment