简体   繁体   English

Twitter API twython:使用其他帐户发布推文

[英]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!")

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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