Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/python
from xero import Xero
from xero.auth import PrivateCredentials
with open("privatekey.pem") as keyfile:
rsa_key = keyfile.read()
# Replace xxxxx with your real consumer key.
credentials = PrivateCredentials('xxxxxxxxxxxxxxxxxxxxxxxx', rsa_key)
xero = Xero(credentials)
users = xero.users.all();
print "Users:"
print users;
print "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.