Search code examples
javaapitwittertwitter4j

Twitter4J - Looking up profile details without logging in


I've been using Twitter4J for a quite a while now, but I can't seem to find this particular feature.

I want to be able to search on a name, and when the certain user is on twitter, I want to retrieve basic information such as tweets, followers (like you can access via http) - but how to do is in Twitter4J? Neither the code examples or the source could help me.

Thanks,

William van Doorn


Solution

  • Look at the following: Twitter4J.api.UserMethods That has the methods you seek. The Twitter class directly implements it.