Package com.twitter.clientlib.api
Class SpacesApi
- java.lang.Object
-
- com.twitter.clientlib.api.ApiCommon
-
- com.twitter.clientlib.api.SpacesApi
-
public class SpacesApi extends ApiCommon
-
-
Field Summary
-
Fields inherited from class com.twitter.clientlib.api.ApiCommon
localVarApiClient
-
-
Constructor Summary
Constructors Constructor Description SpacesApi()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingleSpaceLookupResponsefindSpaceById(Integer retries, String id, Set<String> spaceFields, Set<String> expansions)Calls the API using a retry mechanism to handle rate limits errors.SingleSpaceLookupResponsefindSpaceById(String id, Set<String> spaceFields, Set<String> expansions)Space lookup by Space ID Returns a variety of information about the Space specified by the requested IDokhttp3.CallfindSpaceByIdAsync(String id, Set<String> spaceFields, Set<String> expansions, ApiCallback<SingleSpaceLookupResponse> _callback)Space lookup by Space ID (asynchronously) Returns a variety of information about the Space specified by the requested IDokhttp3.CallfindSpaceByIdCall(String id, Set<String> spaceFields, Set<String> expansions, ApiCallback _callback)Build call for findSpaceByIdApiResponse<SingleSpaceLookupResponse>findSpaceByIdWithHttpInfo(String id, Set<String> spaceFields, Set<String> expansions)Space lookup by Space ID Returns a variety of information about the Space specified by the requested IDMultiSpaceLookupResponsefindSpacesByCreatorIds(Integer retries, List<String> userIds, Set<String> spaceFields, Set<String> expansions)Calls the API using a retry mechanism to handle rate limits errors.MultiSpaceLookupResponsefindSpacesByCreatorIds(List<String> userIds, Set<String> spaceFields, Set<String> expansions)Space lookup by their creators Returns a variety of information about the Spaces created by the provided User IDsokhttp3.CallfindSpacesByCreatorIdsAsync(List<String> userIds, Set<String> spaceFields, Set<String> expansions, ApiCallback<MultiSpaceLookupResponse> _callback)Space lookup by their creators (asynchronously) Returns a variety of information about the Spaces created by the provided User IDsokhttp3.CallfindSpacesByCreatorIdsCall(List<String> userIds, Set<String> spaceFields, Set<String> expansions, ApiCallback _callback)Build call for findSpacesByCreatorIdsApiResponse<MultiSpaceLookupResponse>findSpacesByCreatorIdsWithHttpInfo(List<String> userIds, Set<String> spaceFields, Set<String> expansions)Space lookup by their creators Returns a variety of information about the Spaces created by the provided User IDsMultiSpaceLookupResponsefindSpacesByIds(Integer retries, List<String> ids, Set<String> spaceFields, Set<String> expansions)Calls the API using a retry mechanism to handle rate limits errors.MultiSpaceLookupResponsefindSpacesByIds(List<String> ids, Set<String> spaceFields, Set<String> expansions)Space lookup up Space IDs Returns a variety of information about the Spaces specified by the requested IDsokhttp3.CallfindSpacesByIdsAsync(List<String> ids, Set<String> spaceFields, Set<String> expansions, ApiCallback<MultiSpaceLookupResponse> _callback)Space lookup up Space IDs (asynchronously) Returns a variety of information about the Spaces specified by the requested IDsokhttp3.CallfindSpacesByIdsCall(List<String> ids, Set<String> spaceFields, Set<String> expansions, ApiCallback _callback)Build call for findSpacesByIdsApiResponse<MultiSpaceLookupResponse>findSpacesByIdsWithHttpInfo(List<String> ids, Set<String> spaceFields, Set<String> expansions)Space lookup up Space IDs Returns a variety of information about the Spaces specified by the requested IDsMultiSpaceLookupResponsesearchSpaces(Integer retries, String query, String state, Integer maxResults, Set<String> spaceFields, Set<String> expansions)Calls the API using a retry mechanism to handle rate limits errors.MultiSpaceLookupResponsesearchSpaces(String query, String state, Integer maxResults, Set<String> spaceFields, Set<String> expansions)Search for Spaces Returns Spaces that match the provided query.okhttp3.CallsearchSpacesAsync(String query, String state, Integer maxResults, Set<String> spaceFields, Set<String> expansions, ApiCallback<MultiSpaceLookupResponse> _callback)Search for Spaces (asynchronously) Returns Spaces that match the provided query.okhttp3.CallsearchSpacesCall(String query, String state, Integer maxResults, Set<String> spaceFields, Set<String> expansions, ApiCallback _callback)Build call for searchSpacesApiResponse<MultiSpaceLookupResponse>searchSpacesWithHttpInfo(String query, String state, Integer maxResults, Set<String> spaceFields, Set<String> expansions)Search for Spaces Returns Spaces that match the provided query.MultiUserLookupResponsespaceBuyers(Integer retries, String id, Set<String> userFields)Calls the API using a retry mechanism to handle rate limits errors.MultiUserLookupResponsespaceBuyers(String id, Set<String> userFields)Retrieve the list of users who purchased a ticket to the given space Retrieves the list of users who purchased a ticket to the given spaceokhttp3.CallspaceBuyersAsync(String id, Set<String> userFields, ApiCallback<MultiUserLookupResponse> _callback)Retrieve the list of users who purchased a ticket to the given space (asynchronously) Retrieves the list of users who purchased a ticket to the given spaceokhttp3.CallspaceBuyersCall(String id, Set<String> userFields, ApiCallback _callback)Build call for spaceBuyersApiResponse<MultiUserLookupResponse>spaceBuyersWithHttpInfo(String id, Set<String> userFields)Retrieve the list of users who purchased a ticket to the given space Retrieves the list of users who purchased a ticket to the given spaceMultiTweetLookupResponsespaceTweets(Integer retries, Integer maxResults, String id, Set<String> tweetFields)Calls the API using a retry mechanism to handle rate limits errors.MultiTweetLookupResponsespaceTweets(Integer maxResults, String id, Set<String> tweetFields)Retrieve tweets from a Space Retrieves tweets shared in the specified spaceokhttp3.CallspaceTweetsAsync(Integer maxResults, String id, Set<String> tweetFields, ApiCallback<MultiTweetLookupResponse> _callback)Retrieve tweets from a Space (asynchronously) Retrieves tweets shared in the specified spaceokhttp3.CallspaceTweetsCall(Integer maxResults, String id, Set<String> tweetFields, ApiCallback _callback)Build call for spaceTweetsApiResponse<MultiTweetLookupResponse>spaceTweetsWithHttpInfo(Integer maxResults, String id, Set<String> tweetFields)Retrieve tweets from a Space Retrieves tweets shared in the specified space-
Methods inherited from class com.twitter.clientlib.api.ApiCommon
handleRateLimit, isOAUth2AutoRefreshToken, reduceAuthNames, refreshToken, setClient
-
-
-
-
Method Detail
-
findSpaceByIdCall
public okhttp3.Call findSpaceByIdCall(String id, Set<String> spaceFields, Set<String> expansions, ApiCallback _callback) throws ApiException
Build call for findSpaceById- Parameters:
id- The space id to be retrieved (required)spaceFields- A comma separated list of Space fields to display. (optional)expansions- A comma separated list of fields to expand. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findSpaceById
public SingleSpaceLookupResponse findSpaceById(String id, Set<String> spaceFields, Set<String> expansions) throws ApiException
Space lookup by Space ID Returns a variety of information about the Space specified by the requested ID- Parameters:
id- The space id to be retrieved (required)spaceFields- A comma separated list of Space fields to display. (optional)expansions- A comma separated list of fields to expand. (optional)- Returns:
- SingleSpaceLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findSpaceById
public SingleSpaceLookupResponse findSpaceById(Integer retries, String id, Set<String> spaceFields, Set<String> expansions) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
findSpaceByIdWithHttpInfo
public ApiResponse<SingleSpaceLookupResponse> findSpaceByIdWithHttpInfo(String id, Set<String> spaceFields, Set<String> expansions) throws ApiException
Space lookup by Space ID Returns a variety of information about the Space specified by the requested ID- Parameters:
id- The space id to be retrieved (required)spaceFields- A comma separated list of Space fields to display. (optional)expansions- A comma separated list of fields to expand. (optional)- Returns:
- ApiResponse<SingleSpaceLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findSpaceByIdAsync
public okhttp3.Call findSpaceByIdAsync(String id, Set<String> spaceFields, Set<String> expansions, ApiCallback<SingleSpaceLookupResponse> _callback) throws ApiException
Space lookup by Space ID (asynchronously) Returns a variety of information about the Space specified by the requested ID- Parameters:
id- The space id to be retrieved (required)spaceFields- A comma separated list of Space fields to display. (optional)expansions- A comma separated list of fields to expand. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findSpacesByCreatorIdsCall
public okhttp3.Call findSpacesByCreatorIdsCall(List<String> userIds, Set<String> spaceFields, Set<String> expansions, ApiCallback _callback) throws ApiException
Build call for findSpacesByCreatorIds- Parameters:
userIds- The users to search through (required)spaceFields- A comma separated list of Space fields to display. (optional)expansions- A comma separated list of fields to expand. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findSpacesByCreatorIds
public MultiSpaceLookupResponse findSpacesByCreatorIds(List<String> userIds, Set<String> spaceFields, Set<String> expansions) throws ApiException
Space lookup by their creators Returns a variety of information about the Spaces created by the provided User IDs- Parameters:
userIds- The users to search through (required)spaceFields- A comma separated list of Space fields to display. (optional)expansions- A comma separated list of fields to expand. (optional)- Returns:
- MultiSpaceLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findSpacesByCreatorIds
public MultiSpaceLookupResponse findSpacesByCreatorIds(Integer retries, List<String> userIds, Set<String> spaceFields, Set<String> expansions) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
findSpacesByCreatorIdsWithHttpInfo
public ApiResponse<MultiSpaceLookupResponse> findSpacesByCreatorIdsWithHttpInfo(List<String> userIds, Set<String> spaceFields, Set<String> expansions) throws ApiException
Space lookup by their creators Returns a variety of information about the Spaces created by the provided User IDs- Parameters:
userIds- The users to search through (required)spaceFields- A comma separated list of Space fields to display. (optional)expansions- A comma separated list of fields to expand. (optional)- Returns:
- ApiResponse<MultiSpaceLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findSpacesByCreatorIdsAsync
public okhttp3.Call findSpacesByCreatorIdsAsync(List<String> userIds, Set<String> spaceFields, Set<String> expansions, ApiCallback<MultiSpaceLookupResponse> _callback) throws ApiException
Space lookup by their creators (asynchronously) Returns a variety of information about the Spaces created by the provided User IDs- Parameters:
userIds- The users to search through (required)spaceFields- A comma separated list of Space fields to display. (optional)expansions- A comma separated list of fields to expand. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findSpacesByIdsCall
public okhttp3.Call findSpacesByIdsCall(List<String> ids, Set<String> spaceFields, Set<String> expansions, ApiCallback _callback) throws ApiException
Build call for findSpacesByIds- Parameters:
ids- A list of space ids (required)spaceFields- A comma separated list of Space fields to display. (optional)expansions- A comma separated list of fields to expand. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findSpacesByIds
public MultiSpaceLookupResponse findSpacesByIds(List<String> ids, Set<String> spaceFields, Set<String> expansions) throws ApiException
Space lookup up Space IDs Returns a variety of information about the Spaces specified by the requested IDs- Parameters:
ids- A list of space ids (required)spaceFields- A comma separated list of Space fields to display. (optional)expansions- A comma separated list of fields to expand. (optional)- Returns:
- MultiSpaceLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findSpacesByIds
public MultiSpaceLookupResponse findSpacesByIds(Integer retries, List<String> ids, Set<String> spaceFields, Set<String> expansions) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
findSpacesByIdsWithHttpInfo
public ApiResponse<MultiSpaceLookupResponse> findSpacesByIdsWithHttpInfo(List<String> ids, Set<String> spaceFields, Set<String> expansions) throws ApiException
Space lookup up Space IDs Returns a variety of information about the Spaces specified by the requested IDs- Parameters:
ids- A list of space ids (required)spaceFields- A comma separated list of Space fields to display. (optional)expansions- A comma separated list of fields to expand. (optional)- Returns:
- ApiResponse<MultiSpaceLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findSpacesByIdsAsync
public okhttp3.Call findSpacesByIdsAsync(List<String> ids, Set<String> spaceFields, Set<String> expansions, ApiCallback<MultiSpaceLookupResponse> _callback) throws ApiException
Space lookup up Space IDs (asynchronously) Returns a variety of information about the Spaces specified by the requested IDs- Parameters:
ids- A list of space ids (required)spaceFields- A comma separated list of Space fields to display. (optional)expansions- A comma separated list of fields to expand. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
searchSpacesCall
public okhttp3.Call searchSpacesCall(String query, String state, Integer maxResults, Set<String> spaceFields, Set<String> expansions, ApiCallback _callback) throws ApiException
Build call for searchSpaces- Parameters:
query- The search query (required)state- The state of spaces to search for (optional, default to all)maxResults- The number of results to return. The maximum for this value is 100. (optional)spaceFields- A comma separated list of Space fields to display. (optional)expansions- A comma separated list of fields to expand. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
searchSpaces
public MultiSpaceLookupResponse searchSpaces(String query, String state, Integer maxResults, Set<String> spaceFields, Set<String> expansions) throws ApiException
Search for Spaces Returns Spaces that match the provided query.- Parameters:
query- The search query (required)state- The state of spaces to search for (optional, default to all)maxResults- The number of results to return. The maximum for this value is 100. (optional)spaceFields- A comma separated list of Space fields to display. (optional)expansions- A comma separated list of fields to expand. (optional)- Returns:
- MultiSpaceLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
searchSpaces
public MultiSpaceLookupResponse searchSpaces(Integer retries, String query, String state, Integer maxResults, Set<String> spaceFields, Set<String> expansions) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
searchSpacesWithHttpInfo
public ApiResponse<MultiSpaceLookupResponse> searchSpacesWithHttpInfo(String query, String state, Integer maxResults, Set<String> spaceFields, Set<String> expansions) throws ApiException
Search for Spaces Returns Spaces that match the provided query.- Parameters:
query- The search query (required)state- The state of spaces to search for (optional, default to all)maxResults- The number of results to return. The maximum for this value is 100. (optional)spaceFields- A comma separated list of Space fields to display. (optional)expansions- A comma separated list of fields to expand. (optional)- Returns:
- ApiResponse<MultiSpaceLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
searchSpacesAsync
public okhttp3.Call searchSpacesAsync(String query, String state, Integer maxResults, Set<String> spaceFields, Set<String> expansions, ApiCallback<MultiSpaceLookupResponse> _callback) throws ApiException
Search for Spaces (asynchronously) Returns Spaces that match the provided query.- Parameters:
query- The search query (required)state- The state of spaces to search for (optional, default to all)maxResults- The number of results to return. The maximum for this value is 100. (optional)spaceFields- A comma separated list of Space fields to display. (optional)expansions- A comma separated list of fields to expand. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
spaceBuyersCall
public okhttp3.Call spaceBuyersCall(String id, Set<String> userFields, ApiCallback _callback) throws ApiException
Build call for spaceBuyers- Parameters:
id- The space id from which tweets will be retrieved (required)userFields- A comma separated list of User fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
spaceBuyers
public MultiUserLookupResponse spaceBuyers(String id, Set<String> userFields) throws ApiException
Retrieve the list of users who purchased a ticket to the given space Retrieves the list of users who purchased a ticket to the given space- Parameters:
id- The space id from which tweets will be retrieved (required)userFields- A comma separated list of User fields to display. (optional)- Returns:
- MultiUserLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
spaceBuyers
public MultiUserLookupResponse spaceBuyers(Integer retries, String id, Set<String> userFields) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
spaceBuyersWithHttpInfo
public ApiResponse<MultiUserLookupResponse> spaceBuyersWithHttpInfo(String id, Set<String> userFields) throws ApiException
Retrieve the list of users who purchased a ticket to the given space Retrieves the list of users who purchased a ticket to the given space- Parameters:
id- The space id from which tweets will be retrieved (required)userFields- A comma separated list of User fields to display. (optional)- Returns:
- ApiResponse<MultiUserLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
spaceBuyersAsync
public okhttp3.Call spaceBuyersAsync(String id, Set<String> userFields, ApiCallback<MultiUserLookupResponse> _callback) throws ApiException
Retrieve the list of users who purchased a ticket to the given space (asynchronously) Retrieves the list of users who purchased a ticket to the given space- Parameters:
id- The space id from which tweets will be retrieved (required)userFields- A comma separated list of User fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
spaceTweetsCall
public okhttp3.Call spaceTweetsCall(Integer maxResults, String id, Set<String> tweetFields, ApiCallback _callback) throws ApiException
Build call for spaceTweets- Parameters:
maxResults- The number of tweets to fetch from the provided space. If not provided, the value will default to the maximum of 100 (optional)id- The space id from which tweets will be retrieved (required)tweetFields- A comma separated list of Tweet fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
spaceTweets
public MultiTweetLookupResponse spaceTweets(Integer maxResults, String id, Set<String> tweetFields) throws ApiException
Retrieve tweets from a Space Retrieves tweets shared in the specified space- Parameters:
maxResults- The number of tweets to fetch from the provided space. If not provided, the value will default to the maximum of 100 (optional)id- The space id from which tweets will be retrieved (required)tweetFields- A comma separated list of Tweet fields to display. (optional)- Returns:
- MultiTweetLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
spaceTweets
public MultiTweetLookupResponse spaceTweets(Integer retries, Integer maxResults, String id, Set<String> tweetFields) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
spaceTweetsWithHttpInfo
public ApiResponse<MultiTweetLookupResponse> spaceTweetsWithHttpInfo(Integer maxResults, String id, Set<String> tweetFields) throws ApiException
Retrieve tweets from a Space Retrieves tweets shared in the specified space- Parameters:
maxResults- The number of tweets to fetch from the provided space. If not provided, the value will default to the maximum of 100 (optional)id- The space id from which tweets will be retrieved (required)tweetFields- A comma separated list of Tweet fields to display. (optional)- Returns:
- ApiResponse<MultiTweetLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
spaceTweetsAsync
public okhttp3.Call spaceTweetsAsync(Integer maxResults, String id, Set<String> tweetFields, ApiCallback<MultiTweetLookupResponse> _callback) throws ApiException
Retrieve tweets from a Space (asynchronously) Retrieves tweets shared in the specified space- Parameters:
maxResults- The number of tweets to fetch from the provided space. If not provided, the value will default to the maximum of 100 (optional)id- The space id from which tweets will be retrieved (required)tweetFields- A comma separated list of Tweet fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
-