Skip to content

Instantly share code, notes, and snippets.

@Allwin12
Created May 25, 2020 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Allwin12/a0d8b1221564a17d334ff3a0511bd29a to your computer and use it in GitHub Desktop.
Save Allwin12/a0d8b1221564a17d334ff3a0511bd29a to your computer and use it in GitHub Desktop.
import twitter
consumer_key = "xxxxxxxx"
consumer_secret = "xxxxxxxxx"
access_token_key = "xxxxxxxxxx"
access_token_secret_key = "xxxxxxxxxx"
api = twitter.Api(consumer_key=consumer_key,
consumer_secret=consumer_secret,
access_token_key=access_token_key,
access_token_secret=access_token_secret_key)
api.PostUpdates('Posted using python-twitter api')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment