获取回复列表

时间:2015-06-04 07:11:05

标签: java twitter4j

我正在使用twitter4j在twitter上获取特定帐户的推文

try {
        Twitter twitter = new TwitterFactory().getInstance();
        User user = twitter.verifyCredentials();
        Paging page = new Paging(1,100);
        List<Status> status = twitter.getUserTimeline("BarackObama",page);
        if (status != null){
            for (Status statuses : status) {
                System.out.println("@" + statuses.getUser().getScreenName() + " - " + statuses.getText());}} catch (TwitterException te) {
        te.printStackTrace();
        System.out.println("Failed to get timeline: " + te.getMessage());
        System.exit(-1);
    }`

现在我如何列出每个状态的回复列表(推文)我有????? 我试过statuses.getInReplyToStatusId()但我一无所获 请帮帮我

0 个答案:

没有答案