5

Hi I have this project that I need to use Java to access twitter api, and I found Twitter4j easy to use and tried some samples from the site. However I cannot find details regarding the Query class regarding the query strings for this object, anyone knows a comprehensive info for this one?

Cheers.

quarks
  • 33,478
  • 73
  • 290
  • 513

2 Answers2

6

If by "query string" you mean the value in the query field, that's literally any text you can type into the search box on Twitter's website. There's no list of examples because it's so wide open. Just use whatever you happen to be thinking about at that particular instant in time.

Eric Hydrick
  • 3,467
  • 2
  • 28
  • 41
  • 1
    Yes correct, if this is so, then there should be at least a way to know what are the "filter" keywords to use. – quarks Oct 08 '11 at 14:27
  • Are you referring to stuff like AND, OR, etc? Go to https://twitter.com/#!/search-home and click the "operators" link under the search box. If you want a list of words to type into the box, it doesn't exist because it takes literally any string of text. – Eric Hydrick Oct 08 '11 at 19:27
1

The related JavaDoc page is where I would start (select the library version your using) + searching for 'Twitter4J query examples' in Google.

Is what you need not covered in this?: http://twitter4j.org/en/code-examples.html

jefflunt
  • 33,527
  • 7
  • 88
  • 126
  • yah, however I can't a set of sample query strings to use. Like the one from this post: http://stackoverflow.com/questions/4241861/twitter4j-making-query-and-filtering-posts-by-hashtag – quarks Oct 06 '11 at 14:26
  • Well, if examples don't show up in a Google search, then they effectively don't exist (ok, that's a bit of an overstatement, I admit). – jefflunt Oct 07 '11 at 18:33