twitter4j.api.SuggestedUsersResourcesAsync 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 SuggestedUsersResourcesAsync {
/**
* Access the users in a given category of the Twitter suggested user list.
* It is recommended that end clients cache this data for no more than one hour.
*
This method calls https://api.twitter.com/1.1/users/suggestions/:slug.json
*
* @param categorySlug slug
* @see GET users/suggestions/:slug | Twitter Developers
* @since Twitter4J 2.1.1
*/
void getUserSuggestions(String categorySlug);
/**
* Access to Twitter's suggested user list. This returns the list of suggested user categories. The category can be used in the users/suggestions/category endpoint to get the users in that category.
*
This method calls https://api.twitter.com/1.1/users/suggestions
*
* @see GET users/suggestions | Twitter Developers
* @since Twitter4J 2.1.1
*/
void getSuggestedUserCategories();
/**
* Access the users in a given category of the Twitter suggested user list and return their most recent status if they are not a protected user.
*
This method has not been finalized and the interface is subject to change in incompatible ways.
*
This method calls https://api.twitter.com/1.1/users/suggestions/:slug/members.json
*
* @param categorySlug slug
* @see #newtwitter and the API - Twitter API Announcements | Google Group
* @since Twitter4J 2.1.9
*/
void getMemberSuggestions(String categorySlug);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy