Skip to content

Commit

Permalink
Merge pull request #342 from rossgrady/master
Browse files Browse the repository at this point in the history
Naming/ordering of keys/secrets in examples (in readme & api.py) is off
  • Loading branch information
RouxRC committed Sep 18, 2016
2 parents a5eabab + a139f72 commit f241ec0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README
Expand Up @@ -83,7 +83,7 @@ Examples:
from twitter import *

t = Twitter(
auth=OAuth(token, token_key, con_secret, con_secret_key))
auth=OAuth(token, token_secret, consumer_key, consumer_secret))

# Get your "home" timeline
t.statuses.home_timeline()
Expand Down Expand Up @@ -128,7 +128,7 @@ with open("example.png", "rb") as imagefile:
# - then upload medias one by one on Twitter's dedicated server
# and collect each one's id:
t_upload = Twitter(domain='upload.twitter.com',
auth=OAuth(token, token_key, con_secret, con_secret_key))
auth=OAuth(token, token_secret, consumer_key, consumer_secret))
id_img1 = t_upload.media.upload(media=imagedata)["media_id_string"]
id_img2 = t_upload.media.upload(media=imagedata)["media_id_string"]
# - finally send your tweet with the list of media ids:
Expand Down
4 changes: 2 additions & 2 deletions twitter/api.py
Expand Up @@ -400,7 +400,7 @@ class Twitter(TwitterCall):
from twitter import *
t = Twitter(
auth=OAuth(token, token_key, con_secret, con_secret_key))
auth=OAuth(token, token_secret, consumer_key, consumer_secret))
# Get your "home" timeline
t.statuses.home_timeline()
Expand Down Expand Up @@ -446,7 +446,7 @@ class Twitter(TwitterCall):
# - then upload medias one by one on Twitter's dedicated server
# and collect each one's id:
t_upload = Twitter(domain='upload.twitter.com',
auth=OAuth(token, token_key, con_secret, con_secret_key))
auth=OAuth(token, token_secret, consumer_key, consumer_secret))
id_img1 = t_upload.media.upload(media=imagedata)["media_id_string"]
id_img2 = t_upload.media.upload(media=imagedata)["media_id_string"]
Expand Down

0 comments on commit f241ec0

Please sign in to comment.