简体   繁体   中英

Twitter API twython: Post a tweet with a different account

I can post a Tweet with simple code:

tweeter = twython.Twython("Consumer_Key", "Consumer_Secret",
                          "Acess_Token","Acess_Token_Secret")
tweeter.update_status(status="I am so excited for the new Interchange Map!")

The problem is, the tweet will be posted on my profile. My Question is, can i post a tweet on a different account, but with my Keys and Tokens? Something like this:

tweeter = twython.Twython("Consumer_Key", "Consumer_Secret",
                          "Acess_Token","Acess_Token_Secret")
account = tweeter.login("username", "passwort")
account.update_status(status="I am so excited for the new Interchange Map!")

密钥和令牌绑定到特定帐户,所以您不能这样做。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM