Package com.twitter.clientlib.api
Class SpacesApi.APIfindSpaceByIdRequest
- java.lang.Object
-
- com.twitter.clientlib.api.SpacesApi.APIfindSpaceByIdRequest
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.Call
buildCall(ApiCallback _callback)
Build call for findSpaceByIdGet2SpacesIdResponse
execute()
Execute findSpaceById requestGet2SpacesIdResponse
execute(Integer retries)
Calls the API using a retry mechanism to handle rate limits errors.okhttp3.Call
executeAsync(ApiCallback<Get2SpacesIdResponse> _callback)
Execute findSpaceById request (asynchronously)ApiResponse<Get2SpacesIdResponse>
executeWithHttpInfo()
Execute findSpaceById request with HTTP info returnedSpacesApi.APIfindSpaceByIdRequest
expansions(Set<String> expansions)
Set expansionsSpacesApi.APIfindSpaceByIdRequest
spaceFields(Set<String> spaceFields)
Set spaceFieldsSpacesApi.APIfindSpaceByIdRequest
topicFields(Set<String> topicFields)
Set topicFieldsSpacesApi.APIfindSpaceByIdRequest
userFields(Set<String> userFields)
Set userFields
-
-
-
Method Detail
-
spaceFields
public SpacesApi.APIfindSpaceByIdRequest spaceFields(Set<String> spaceFields)
Set spaceFields- Parameters:
spaceFields
- A comma separated list of Space fields to display. (optional)- Returns:
- APIfindSpaceByIdRequest
-
expansions
public SpacesApi.APIfindSpaceByIdRequest expansions(Set<String> expansions)
Set expansions- Parameters:
expansions
- A comma separated list of fields to expand. (optional)- Returns:
- APIfindSpaceByIdRequest
-
userFields
public SpacesApi.APIfindSpaceByIdRequest userFields(Set<String> userFields)
Set userFields- Parameters:
userFields
- A comma separated list of User fields to display. (optional)- Returns:
- APIfindSpaceByIdRequest
-
topicFields
public SpacesApi.APIfindSpaceByIdRequest topicFields(Set<String> topicFields)
Set topicFields- Parameters:
topicFields
- A comma separated list of Topic fields to display. (optional)- Returns:
- APIfindSpaceByIdRequest
-
buildCall
public okhttp3.Call buildCall(ApiCallback _callback) throws ApiException
Build call for findSpaceById- Parameters:
_callback
- ApiCallback API callback- 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 has succeeded. - 0 The request has failed. -
-
execute
public Get2SpacesIdResponse execute() throws ApiException
Execute findSpaceById request- Returns:
- Get2SpacesIdResponse
- 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 has succeeded. - 0 The request has failed. -
-
execute
public Get2SpacesIdResponse execute(Integer retries) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
executeWithHttpInfo
public ApiResponse<Get2SpacesIdResponse> executeWithHttpInfo() throws ApiException
Execute findSpaceById request with HTTP info returned- Returns:
- ApiResponse<Get2SpacesIdResponse>
- 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 has succeeded. - 0 The request has failed. -
-
executeAsync
public okhttp3.Call executeAsync(ApiCallback<Get2SpacesIdResponse> _callback) throws ApiException
Execute findSpaceById request (asynchronously)- Parameters:
_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 has succeeded. - 0 The request has failed. -
-
-