【问题标题】:Twitter API twython: Post a tweet with a different accountTwitter API twython:使用不同的帐户发布推文
【发布时间】:2018-10-02 02:49:21
【问题描述】:

我可以用简单的代码发布一条推文:

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!")

问题是,这条推文将发布在我的个人资料上。 我的问题是,我可以使用我的密钥和令牌在不同的帐户上发布推文吗?像这样的:

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!")

【问题讨论】:

  • 密钥和令牌与特定帐户绑定。
  • 感谢您的回答。
  • consumer_key 和 consumer_secret 是关于应用程序的。正如 Colin 所说,access_token 和 access_token_secret 是关于用户的。所以这是你的“登录名/密码”。 access_token 开头的数字是相关用户的twitter id。

标签: python twitter twython


【解决方案1】:

密钥和令牌与特定帐户绑定,因此您不能这样做。

【讨论】:

    猜你喜欢
    • 2013-10-06
    • 2012-09-05
    • 1970-01-01
    • 2020-04-16
    • 2019-03-06
    • 2013-12-25
    • 1970-01-01
    • 2017-06-13
    • 1970-01-01
    相关资源
    最近更新 更多