
twitter4j.api.SearchMethodsAsync Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twitter4j-core Show documentation
Show all versions of twitter4j-core Show documentation
A Java library for the Twitter API
The newest version!
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the Yusuke Yamamoto nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY Yusuke Yamamoto ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL Yusuke Yamamoto BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package twitter4j.api;
import twitter4j.Query;
import twitter4j.TwitterListener;
import java.util.Date;
/**
* @author Joern Huxhorn - jhuxhorn at googlemail.com
*/
public interface SearchMethodsAsync {
/**
* Returns tweets that match a specified query.
*
This method calls http://search.twitter.com/search
*
* @param query - the search condition
* @since Twitter4J 1.1.7
* @see Twitter API / Search API Documentation
* @see Twitter API / Search Operators
*/
void search(Query query);
/**
* Returns the top ten topics that are currently trending on Twitter. The response includes the time of the request, the name of each trend, and the url to the Twitter Search results page for that topic.
*
This method calls http://search.twitter.com/trends
* @since Twitter4J 2.0.2
* @see Twitter Search API Method: trends
*/
void getTrends();
/**
* Returns the current top 10 trending topics on Twitter. The response includes the time of the request, the name of each trending topic, and query used on Twitter Search results page for that topic.
*
This method calls http://search.twitter.com/trends/current
* @since Twitter4J 2.0.2
* @see Twitter Search API Method: trends
*/
void getCurrentTrends();
/**
* Returns the current top 10 trending topics on Twitter. The response includes the time of the request, the name of each trending topic, and query used on Twitter Search results page for that topic.
*
This method calls http://search.twitter.com/trends/current
* @param excludeHashTags Setting this to true will remove all hashtags from the trends list.
* @since Twitter4J 2.0.2
* @see Twitter Search API Method: trends
*/
void getCurrentTrends(boolean excludeHashTags);
/**
* Returns the top 20 trending topics for each hour in a given day.
*
This method calls http://search.twitter.com/trends/daily
* @since Twitter4J 2.0.2
* @see Twitter Search API Method: trends daily
*/
void getDailyTrends();
/**
* Returns the top 20 trending topics for each hour in a given day.
*
This method calls http://search.twitter.com/trends/daily
* @param date Permits specifying a start date for the report.
* @param excludeHashTags Setting this to true will remove all hashtags from the trends list.
* @since Twitter4J 2.0.2
* @see Twitter Search API Method: trends daily
*/
void getDailyTrends(Date date, boolean excludeHashTags);
/**
* Returns the top 30 trending topics for each day in a given week.
*
This method calls http://search.twitter.com/trends/weekly
* @since Twitter4J 2.0.2
* @see Twitter Search API Method: trends weekly
*/
void getWeeklyTrends();
/**
* Returns the top 30 trending topics for each day in a given week.
*
This method calls http://search.twitter.com/trends/weekly
* @param date Permits specifying a start date for the report.
* @param excludeHashTags Setting this to true will remove all hashtags from the trends list.
* @since Twitter4J 2.0.2
* @see Twitter Search API Method: trends weekly
*/
void getWeeklyTrends(Date date, boolean excludeHashTags);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy