Class UsersApi.APIlistGetFollowersRequest

  • Enclosing class:
    UsersApi

    public class UsersApi.APIlistGetFollowersRequest
    extends Object
    • Method Detail

      • maxResults

        public UsersApi.APIlistGetFollowersRequest maxResults​(Integer maxResults)
        Set maxResults
        Parameters:
        maxResults - The maximum number of results. (optional, default to 100)
        Returns:
        APIlistGetFollowersRequest
      • paginationToken

        public UsersApi.APIlistGetFollowersRequest paginationToken​(String paginationToken)
        Set paginationToken
        Parameters:
        paginationToken - This parameter is used to get a specified 'page' of results. (optional)
        Returns:
        APIlistGetFollowersRequest
      • userFields

        public UsersApi.APIlistGetFollowersRequest userFields​(Set<String> userFields)
        Set userFields
        Parameters:
        userFields - A comma separated list of User fields to display. (optional)
        Returns:
        APIlistGetFollowersRequest
      • expansions

        public UsersApi.APIlistGetFollowersRequest expansions​(Set<String> expansions)
        Set expansions
        Parameters:
        expansions - A comma separated list of fields to expand. (optional)
        Returns:
        APIlistGetFollowersRequest
      • tweetFields

        public UsersApi.APIlistGetFollowersRequest tweetFields​(Set<String> tweetFields)
        Set tweetFields
        Parameters:
        tweetFields - A comma separated list of Tweet fields to display. (optional)
        Returns:
        APIlistGetFollowersRequest
      • buildCall

        public okhttp3.Call buildCall​(ApiCallback _callback)
                               throws ApiException
        Build call for listGetFollowers
        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 Get2ListsIdFollowersResponse execute()
                                             throws ApiException
        Execute listGetFollowers request
        Returns:
        Get2ListsIdFollowersResponse
        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<Get2ListsIdFollowersResponse> executeWithHttpInfo()
                                                                      throws ApiException
        Execute listGetFollowers request with HTTP info returned
        Returns:
        ApiResponse<Get2ListsIdFollowersResponse>
        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<Get2ListsIdFollowersResponse> _callback)
                                  throws ApiException
        Execute listGetFollowers 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. -