Example usage for twitter4j Query Query

List of usage examples for twitter4j Query Query

Introduction

In this page you can find the example usage for twitter4j Query Query.

Prototype

public Query(String query) 

Source Link

Usage

From source file:wise.TwitterUtils.java

public static Query SetQueryString(String place, Date since, Date until) {
    Query query = new Query("place:" + place + "url:swarmapp.com");
    String startDate = new SimpleDateFormat("yyyy-MM-dd").format(since);
    String endDate = new SimpleDateFormat("yyyy-MM-dd").format(until);
    query.setCount(100);//w ww. ja  v a 2  s. c  o  m
    query.setSince(startDate);
    query.setUntil(endDate);
    query.setSinceId(0);
    return query;
}