使用Twitter4j和Geolocation查找在该区域发布推文的用户,但如何获取用户ID?

时间:2016-04-19 01:08:03

标签: java api twitter geolocation

Query query = new Query("MDX").geoCode(new GeoLocation(51.589344, -0.228242), 5, "km"); 
query.count(11); //You can also set the number of tweets to return per page, up to a max of 100
QueryResult result;
        result = twitter.search(query);


//Set the language of the tweets that we want
query.setLang("en");//Language codes listed here;

我正在尝试使用tweet.getUser().getId但是在完成它时遇到了问题

0 个答案:

没有答案