Class TweetsApi.APItweetsFullarchiveSearchRequest

  • Enclosing class:
    TweetsApi

    public class TweetsApi.APItweetsFullarchiveSearchRequest
    extends Object
    • 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
      • 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. -
      • 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. -