twitter4j.api.SavedSearchesResourcesAsync Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twitter4j-async Show documentation
Show all versions of twitter4j-async Show documentation
A Java library for the Twitter API
The 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;
/**
* @author Yusuke Yamamoto - yusuke at mac.com
* @since Twitter4J 3.0.0
*/
public interface SavedSearchesResourcesAsync {
/**
* Returns the authenticated user's saved search queries.
*
This method calls https://api.twitter.com/1.1/saved_searches.json
*
blocking.
* @see GET saved_searches | Twitter Developers
* @since Twitter4J 3.0.0
*/
void getSavedSearches();
/**
* Retrieve the data for a saved search owned by the authenticating user specified by the given id.
*
This method calls https://api.twitter.com/1.1/saved_searches/show/:id.json
*
* @param id The id of the saved search to be retrieved.
* @see GET saved_searches/show/:id | Twitter Developers
* @since Twitter4J 3.0.0
*/
void showSavedSearch(int id);
/**
* Creates a saved search for the authenticated user.
*
This method calls https://api.twitter.com/1.1/saved_searches/saved_searches/create.json
*
* @param query the query string
* @see POST saved_searches/create | Twitter Developers
* @since Twitter4J 3.0.0
*/
void createSavedSearch(String query);
/**
* Destroys a saved search for the authenticated user. The search specified by id must be owned by the authenticating user.
*
This method calls https://api.twitter.com/1.1/saved_searches/destroy/id.json
*
* @param id The id of the saved search to be deleted.
* @see POST saved_searches/destroy/:id | Twitter Developers
* @since Twitter4J 3.0.0
*/
void destroySavedSearch(int id);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy