簡體   English   中英

Twitter API twython:使用其他帳戶發布推文

[英]Twitter API twython: Post a tweet with a different account

我可以用簡單的代碼發布一條推文:

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

密鑰和令牌綁定到特定帳戶,所以您不能這樣做。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM