有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

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

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) 个答案