当前位置: 动力学知识库 > 问答 > 编程问答 >

twitter4j - limit results of twitter.lookupUser method?

问题描述:

in the twitter4j library:

Is there a way to reduce the number of results for the twitter.lookupUser method? i.e. only return certain fields or even only fields that are not empty?

网友答案:

I actually already found the answer. So for people who are looking for the same thing:

if you use the lookupUser method a list of Users gets returned. so then you can use all of the User methods on that list. For example getLocation, which only returns the location of the users in the list.

分享给朋友:
您可能感兴趣的文章:
随机阅读: