Skip to content

Instantly share code, notes, and snippets.

@bhavul
Last active April 8, 2019 11:31
Show Gist options
  • Save bhavul/21d0dc966419b071678f48577cd42709 to your computer and use it in GitHub Desktop.
Save bhavul/21d0dc966419b071678f48577cd42709 to your computer and use it in GitHub Desktop.
This is an example of how to tweet using Twython
from twython import Twython
tweet_string = "hello, world."
API_KEY = "iHDICWjSK3FXJv6sgCUDwg2hg"
API_SECRET = "VRialcPgfLwey43ryzqSq7R5P6IPVyR3Djty3gKL7HgabqDRNj"
ACCESS_TOKEN = "734117510488854528-iAqT0rHR89Svjdi6ZELvzqmGDFCXNd8"
ACCESS_SECRET = "etLHwcnLcH2NwTlklQc0GPTzrICLulpWtQ2MtYr0WVnwX"
api = Twython(API_KEY, API_SECRET, ACCESS_TOKEN, ACCESS_SECRET)
api.update_status(tweet_string)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment