All Downloads are FREE. Search and download functionalities are using the official Maven repository.

twitter4j.api.SearchResource Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
/*
 * Copyright 2007 Yusuke Yamamoto
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package twitter4j.api;

import twitter4j.Query;
import twitter4j.QueryResult;
import twitter4j.TwitterException;

/**
 * @author Joern Huxhorn - jhuxhorn at googlemail.com
 */
public interface SearchResource {
    /**
     * Returns tweets that match a specified query.
     * 
This method calls http://search.twitter.com/search.json * * @param query - the search condition * @return the result * @throws TwitterException when Twitter service or network is unavailable * @see GET search | Twitter Developers * @see Twitter API / Search Operators * @since Twitter4J 1.1.7 */ QueryResult search(Query query) throws TwitterException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy