Retweet using Twitter4j Android

爱⌒轻易说出口 提交于 2019-12-04 14:01:38

问题


i'm trying make simple app twitter and i use twitter4j library and i got good tutorial how to login and post twitter used that library. my app display timeline and had retweet button, my question how to retweet using twitter4j library?


回答1:


You can call Status#retweet() or TwitterStream#retweet() with the original tweet id.

You can also use Twitter#retweetStatus(), for example:

Twitter twitter = new TwitterFactory().getInstance();
twitter.retweetStatus(idOfStatusToRetweet);


来源:https://stackoverflow.com/questions/12256606/retweet-using-twitter4j-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!