Package com.twitter.clientlib.api
Class TweetsApi.APItweetsFullarchiveSearchRequest
- java.lang.Object
-
- com.twitter.clientlib.api.TweetsApi.APItweetsFullarchiveSearchRequest
-
-
Method Summary
-
-
-
Method Detail
-
startTime
public TweetsApi.APItweetsFullarchiveSearchRequest startTime(OffsetDateTime startTime)
Set startTime- Parameters:
startTime
- YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute). (optional)- Returns:
- APItweetsFullarchiveSearchRequest
-
endTime
public TweetsApi.APItweetsFullarchiveSearchRequest endTime(OffsetDateTime endTime)
Set endTime- Parameters:
endTime
- YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute). (optional)- Returns:
- APItweetsFullarchiveSearchRequest
-
sinceId
public TweetsApi.APItweetsFullarchiveSearchRequest sinceId(String sinceId)
Set sinceId- Parameters:
sinceId
- Returns results with a Tweet ID greater than (that is, more recent than) the specified ID. (optional)- Returns:
- APItweetsFullarchiveSearchRequest
-
untilId
public TweetsApi.APItweetsFullarchiveSearchRequest untilId(String untilId)
Set untilId- Parameters:
untilId
- Returns results with a Tweet ID less than (that is, older than) the specified ID. (optional)- Returns:
- APItweetsFullarchiveSearchRequest
-
maxResults
public TweetsApi.APItweetsFullarchiveSearchRequest maxResults(Integer maxResults)
Set maxResults- Parameters:
maxResults
- The maximum number of search results to be returned by a request. (optional, default to 10)- Returns:
- APItweetsFullarchiveSearchRequest
-
nextToken
public TweetsApi.APItweetsFullarchiveSearchRequest nextToken(String nextToken)
Set nextToken- Parameters:
nextToken
- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)- Returns:
- APItweetsFullarchiveSearchRequest
-
paginationToken
public TweetsApi.APItweetsFullarchiveSearchRequest paginationToken(String paginationToken)
Set paginationToken- Parameters:
paginationToken
- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)- Returns:
- APItweetsFullarchiveSearchRequest
-
sortOrder
public TweetsApi.APItweetsFullarchiveSearchRequest sortOrder(String sortOrder)
Set sortOrder- Parameters:
sortOrder
- This order in which to return results. (optional)- Returns:
- APItweetsFullarchiveSearchRequest
-
tweetFields
public TweetsApi.APItweetsFullarchiveSearchRequest tweetFields(Set<String> tweetFields)
Set tweetFields- Parameters:
tweetFields
- A comma separated list of Tweet fields to display. (optional)- Returns:
- APItweetsFullarchiveSearchRequest
-
expansions
public TweetsApi.APItweetsFullarchiveSearchRequest expansions(Set<String> expansions)
Set expansions- Parameters:
expansions
- A comma separated list of fields to expand. (optional)- Returns:
- APItweetsFullarchiveSearchRequest
-
mediaFields
public TweetsApi.APItweetsFullarchiveSearchRequest mediaFields(Set<String> mediaFields)
Set mediaFields- Parameters:
mediaFields
- A comma separated list of Media fields to display. (optional)- Returns:
- APItweetsFullarchiveSearchRequest
-
pollFields
public TweetsApi.APItweetsFullarchiveSearchRequest pollFields(Set<String> pollFields)
Set pollFields- Parameters:
pollFields
- A comma separated list of Poll fields to display. (optional)- Returns:
- APItweetsFullarchiveSearchRequest
-
userFields
public TweetsApi.APItweetsFullarchiveSearchRequest userFields(Set<String> userFields)
Set userFields- Parameters:
userFields
- A comma separated list of User fields to display. (optional)- Returns:
- APItweetsFullarchiveSearchRequest
-
placeFields
public TweetsApi.APItweetsFullarchiveSearchRequest placeFields(Set<String> placeFields)
Set placeFields- Parameters:
placeFields
- A comma separated list of Place fields to display. (optional)- Returns:
- APItweetsFullarchiveSearchRequest
-
buildCall
public okhttp3.Call buildCall(ApiCallback _callback) throws ApiException
Build call for tweetsFullarchiveSearch- 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 Get2TweetsSearchAllResponse execute() throws ApiException
Execute tweetsFullarchiveSearch request- Returns:
- Get2TweetsSearchAllResponse
- 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 Get2TweetsSearchAllResponse execute(Integer retries) throws ApiException
Calls the API using a retry mechanism to handle rate limits errors.- Throws:
ApiException
-
executeWithHttpInfo
public ApiResponse<Get2TweetsSearchAllResponse> executeWithHttpInfo() throws ApiException
Execute tweetsFullarchiveSearch request with HTTP info returned- Returns:
- ApiResponse<Get2TweetsSearchAllResponse>
- 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<Get2TweetsSearchAllResponse> _callback) throws ApiException
Execute tweetsFullarchiveSearch 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. -
-
-