Skip to content

Instantly share code, notes, and snippets.

@rosskarchner
Last active Aug 29, 2015
Embed
What would you like to do?
import adnpy
import sys
# Set the default access token for API calls.
adnpy.api.add_authorization_token('AQAAAAAACqdtFdqwsJmFbaDL036aIM8RDgQKvbDhXBfFJRMl0IQkurrGfBROJQ5Qx0mEf0oYYdnecAyEZR29jgkEPUTaPes_zg')
while True:
try:
text = raw_input('> ')
if text:
post, meta = adnpy.api.create_post(data={'text':text})
except EOFError:
print "\ngoodbye!"
sys.exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment