Skip to content

Instantly share code, notes, and snippets.

@andymckay
Created July 27, 2011 09:27
Show Gist options
  • Save andymckay/1109004 to your computer and use it in GitHub Desktop.
Save andymckay/1109004 to your computer and use it in GitHub Desktop.
from amo import AMOOAuth
if 1:
amo = AMOOAuth(domain="addons.allizom.org", port=443, protocol='https',
prefix='/z')
amo.set_consumer(consumer_key='xxx',
consumer_secret='xxx')
print amo.get_user()
~/sandboxes/amo-oauth/src(master) $ python test.py
{u'email': u'[email protected]'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment