Last active
August 29, 2015 13:57
-
-
Save rosskarchner/9921573 to your computer and use it in GitHub Desktop.
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
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