Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
Copyright 2020 Twitter, Inc.
SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
https://openapi-generator.tech
Do not edit the class manually.
*/
package com.twitter.clientlib.api;
import com.twitter.clientlib.ApiCallback;
import com.twitter.clientlib.ApiClient;
import com.twitter.clientlib.auth.*;
import com.twitter.clientlib.ApiException;
import com.twitter.clientlib.ApiResponse;
import com.twitter.clientlib.Configuration;
import com.twitter.clientlib.Pair;
import com.twitter.clientlib.ProgressRequestBody;
import com.twitter.clientlib.ProgressResponseBody;
import com.github.scribejava.core.model.OAuth2AccessToken;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import com.twitter.clientlib.model.Error;
import com.twitter.clientlib.model.GenericMultipleUsersLookupResponse;
import com.twitter.clientlib.model.ListLookupMultipleUsersLookupResponse;
import com.twitter.clientlib.model.MultiUserLookupResponse;
import com.twitter.clientlib.model.Problem;
import java.util.Set;
import com.twitter.clientlib.model.SingleUserLookupResponse;
import com.twitter.clientlib.model.UsersBlockingMutationResponse;
import com.twitter.clientlib.model.UsersFollowingCreateResponse;
import com.twitter.clientlib.model.UsersFollowingDeleteResponse;
import com.twitter.clientlib.model.UsersFollowingLookupResponse;
import com.twitter.clientlib.model.UsersIdBlockRequest;
import com.twitter.clientlib.model.UsersIdFollowRequest;
import com.twitter.clientlib.model.UsersIdMuteRequest;
import com.twitter.clientlib.model.UsersMutingMutationResponse;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Arrays;
import java.io.InputStream;
import javax.ws.rs.core.GenericType;
import org.apache.commons.lang3.StringUtils;
public class UsersApi extends ApiCommon {
/**
* Build call for findMyUser
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @param _callback Callback for upload/download progress
* @return 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.
-
*/
public okhttp3.Call findMyUserCall(Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/2/users/me";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (expansions != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "expansions", expansions));
}
if (tweetFields != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "tweet.fields", tweetFields));
}
if (userFields != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "user.fields", userFields));
}
final String[] localVarAccepts = {
"application/json", "application/problem+json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "OAuth2UserToken", "UserToken" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, reduceAuthNames(localVarAuthNames), _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call findMyUserValidateBeforeCall(Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = findMyUserCall(expansions, tweetFields, userFields, _callback);
return localVarCall;
}
/**
* User lookup me
* This endpoint returns information about the requesting user.
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @return SingleUserLookupResponse
* @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.
-
*/
public SingleUserLookupResponse findMyUser(Set expansions, Set tweetFields, Set userFields) throws ApiException {
ApiResponse localVarResp = findMyUserWithHttpInfo(expansions, tweetFields, userFields);
return localVarResp != null ? localVarResp.getData() : null;
}
/**
* Calls the API using a retry mechanism to handle rate limits errors.
*
*/
public SingleUserLookupResponse findMyUser(Integer retries, Set expansions, Set tweetFields, Set userFields) throws ApiException {
SingleUserLookupResponse localVarResp;
try{
localVarResp = findMyUser(expansions, tweetFields, userFields);
} catch (ApiException e) {
if(handleRateLimit(e, retries)) {
return findMyUser(retries - 1, expansions, tweetFields, userFields);
} else {
throw e;
}
}
return localVarResp;
}
/**
* User lookup me
* This endpoint returns information about the requesting user.
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @return ApiResponse<SingleUserLookupResponse>
* @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.
-
*/
public ApiResponse findMyUserWithHttpInfo(Set expansions, Set tweetFields, Set userFields) throws ApiException {
okhttp3.Call localVarCall = findMyUserValidateBeforeCall(expansions, tweetFields, userFields, null);
try {
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} catch (ApiException e) {
e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken(){}.getType()));
throw e;
}
}
/**
* User lookup me (asynchronously)
* This endpoint returns information about the requesting user.
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return 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.
-
*/
public okhttp3.Call findMyUserAsync(Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = findMyUserValidateBeforeCall(expansions, tweetFields, userFields, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for findUserById
* @param id Required. A User ID. (required)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @param _callback Callback for upload/download progress
* @return 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.
-
*/
public okhttp3.Call findUserByIdCall(String id, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/2/users/{id}"
.replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (expansions != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "expansions", expansions));
}
if (tweetFields != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "tweet.fields", tweetFields));
}
if (userFields != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "user.fields", userFields));
}
final String[] localVarAccepts = {
"application/json", "application/problem+json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken", "OAuth2UserToken", "UserToken" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, reduceAuthNames(localVarAuthNames), _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call findUserByIdValidateBeforeCall(String id, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling findUserById(Async)");
}
okhttp3.Call localVarCall = findUserByIdCall(id, expansions, tweetFields, userFields, _callback);
return localVarCall;
}
/**
* User lookup by ID
* This endpoint returns information about a user. Specify user by ID.
* @param id Required. A User ID. (required)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @return SingleUserLookupResponse
* @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.
-
*/
public SingleUserLookupResponse findUserById(String id, Set expansions, Set tweetFields, Set userFields) throws ApiException {
ApiResponse localVarResp = findUserByIdWithHttpInfo(id, expansions, tweetFields, userFields);
return localVarResp != null ? localVarResp.getData() : null;
}
/**
* Calls the API using a retry mechanism to handle rate limits errors.
*
*/
public SingleUserLookupResponse findUserById(Integer retries, String id, Set expansions, Set tweetFields, Set userFields) throws ApiException {
SingleUserLookupResponse localVarResp;
try{
localVarResp = findUserById(id, expansions, tweetFields, userFields);
} catch (ApiException e) {
if(handleRateLimit(e, retries)) {
return findUserById(retries - 1, id, expansions, tweetFields, userFields);
} else {
throw e;
}
}
return localVarResp;
}
/**
* User lookup by ID
* This endpoint returns information about a user. Specify user by ID.
* @param id Required. A User ID. (required)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @return ApiResponse<SingleUserLookupResponse>
* @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.
-
*/
public ApiResponse findUserByIdWithHttpInfo(String id, Set expansions, Set tweetFields, Set userFields) throws ApiException {
okhttp3.Call localVarCall = findUserByIdValidateBeforeCall(id, expansions, tweetFields, userFields, null);
try {
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} catch (ApiException e) {
e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken(){}.getType()));
throw e;
}
}
/**
* User lookup by ID (asynchronously)
* This endpoint returns information about a user. Specify user by ID.
* @param id Required. A User ID. (required)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return 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.
-
*/
public okhttp3.Call findUserByIdAsync(String id, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = findUserByIdValidateBeforeCall(id, expansions, tweetFields, userFields, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for findUserByUsername
* @param username Required. A username. (required)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @param _callback Callback for upload/download progress
* @return 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.
-
*/
public okhttp3.Call findUserByUsernameCall(String username, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/2/users/by/username/{username}"
.replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (expansions != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "expansions", expansions));
}
if (tweetFields != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "tweet.fields", tweetFields));
}
if (userFields != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "user.fields", userFields));
}
final String[] localVarAccepts = {
"application/json", "application/problem+json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken", "OAuth2UserToken", "UserToken" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, reduceAuthNames(localVarAuthNames), _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call findUserByUsernameValidateBeforeCall(String username, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException("Missing the required parameter 'username' when calling findUserByUsername(Async)");
}
okhttp3.Call localVarCall = findUserByUsernameCall(username, expansions, tweetFields, userFields, _callback);
return localVarCall;
}
/**
* User lookup by username
* This endpoint returns information about a user. Specify user by username.
* @param username Required. A username. (required)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @return SingleUserLookupResponse
* @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.
-
*/
public SingleUserLookupResponse findUserByUsername(String username, Set expansions, Set tweetFields, Set userFields) throws ApiException {
ApiResponse localVarResp = findUserByUsernameWithHttpInfo(username, expansions, tweetFields, userFields);
return localVarResp != null ? localVarResp.getData() : null;
}
/**
* Calls the API using a retry mechanism to handle rate limits errors.
*
*/
public SingleUserLookupResponse findUserByUsername(Integer retries, String username, Set expansions, Set tweetFields, Set userFields) throws ApiException {
SingleUserLookupResponse localVarResp;
try{
localVarResp = findUserByUsername(username, expansions, tweetFields, userFields);
} catch (ApiException e) {
if(handleRateLimit(e, retries)) {
return findUserByUsername(retries - 1, username, expansions, tweetFields, userFields);
} else {
throw e;
}
}
return localVarResp;
}
/**
* User lookup by username
* This endpoint returns information about a user. Specify user by username.
* @param username Required. A username. (required)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @return ApiResponse<SingleUserLookupResponse>
* @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.
-
*/
public ApiResponse findUserByUsernameWithHttpInfo(String username, Set expansions, Set tweetFields, Set userFields) throws ApiException {
okhttp3.Call localVarCall = findUserByUsernameValidateBeforeCall(username, expansions, tweetFields, userFields, null);
try {
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} catch (ApiException e) {
e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken(){}.getType()));
throw e;
}
}
/**
* User lookup by username (asynchronously)
* This endpoint returns information about a user. Specify user by username.
* @param username Required. A username. (required)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return 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.
-
*/
public okhttp3.Call findUserByUsernameAsync(String username, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = findUserByUsernameValidateBeforeCall(username, expansions, tweetFields, userFields, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for findUsersById
* @param ids Required. A list of User IDs, comma-separated. You can specify up to 100 IDs. (required)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @param _callback Callback for upload/download progress
* @return 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.
-
*/
public okhttp3.Call findUsersByIdCall(List ids, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/2/users";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (ids != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "ids", ids));
}
if (expansions != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "expansions", expansions));
}
if (tweetFields != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "tweet.fields", tweetFields));
}
if (userFields != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "user.fields", userFields));
}
final String[] localVarAccepts = {
"application/json", "application/problem+json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken", "OAuth2UserToken", "UserToken" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, reduceAuthNames(localVarAuthNames), _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call findUsersByIdValidateBeforeCall(List ids, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'ids' is set
if (ids == null) {
throw new ApiException("Missing the required parameter 'ids' when calling findUsersById(Async)");
}
okhttp3.Call localVarCall = findUsersByIdCall(ids, expansions, tweetFields, userFields, _callback);
return localVarCall;
}
/**
* User lookup by IDs
* This endpoint returns information about users. Specify users by their ID.
* @param ids Required. A list of User IDs, comma-separated. You can specify up to 100 IDs. (required)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @return 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.
-
*/
public MultiUserLookupResponse findUsersById(List ids, Set expansions, Set tweetFields, Set userFields) throws ApiException {
ApiResponse localVarResp = findUsersByIdWithHttpInfo(ids, expansions, tweetFields, userFields);
return localVarResp != null ? localVarResp.getData() : null;
}
/**
* Calls the API using a retry mechanism to handle rate limits errors.
*
*/
public MultiUserLookupResponse findUsersById(Integer retries, List ids, Set expansions, Set tweetFields, Set userFields) throws ApiException {
MultiUserLookupResponse localVarResp;
try{
localVarResp = findUsersById(ids, expansions, tweetFields, userFields);
} catch (ApiException e) {
if(handleRateLimit(e, retries)) {
return findUsersById(retries - 1, ids, expansions, tweetFields, userFields);
} else {
throw e;
}
}
return localVarResp;
}
/**
* User lookup by IDs
* This endpoint returns information about users. Specify users by their ID.
* @param ids Required. A list of User IDs, comma-separated. You can specify up to 100 IDs. (required)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @return 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.
-
*/
public ApiResponse findUsersByIdWithHttpInfo(List ids, Set expansions, Set tweetFields, Set userFields) throws ApiException {
okhttp3.Call localVarCall = findUsersByIdValidateBeforeCall(ids, expansions, tweetFields, userFields, null);
try {
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} catch (ApiException e) {
e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken(){}.getType()));
throw e;
}
}
/**
* User lookup by IDs (asynchronously)
* This endpoint returns information about users. Specify users by their ID.
* @param ids Required. A list of User IDs, comma-separated. You can specify up to 100 IDs. (required)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return 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.
-
*/
public okhttp3.Call findUsersByIdAsync(List ids, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = findUsersByIdValidateBeforeCall(ids, expansions, tweetFields, userFields, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for findUsersByUsername
* @param usernames Required . A list of usernames, comma-separated. You can specify up to 100 usernames. (required)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @param _callback Callback for upload/download progress
* @return 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.
-
*/
public okhttp3.Call findUsersByUsernameCall(List usernames, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/2/users/by";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (usernames != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "usernames", usernames));
}
if (expansions != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "expansions", expansions));
}
if (tweetFields != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "tweet.fields", tweetFields));
}
if (userFields != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "user.fields", userFields));
}
final String[] localVarAccepts = {
"application/json", "application/problem+json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken", "OAuth2UserToken", "UserToken" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, reduceAuthNames(localVarAuthNames), _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call findUsersByUsernameValidateBeforeCall(List usernames, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'usernames' is set
if (usernames == null) {
throw new ApiException("Missing the required parameter 'usernames' when calling findUsersByUsername(Async)");
}
okhttp3.Call localVarCall = findUsersByUsernameCall(usernames, expansions, tweetFields, userFields, _callback);
return localVarCall;
}
/**
* User lookup by usernames
* This endpoint returns information about users. Specify users by their username.
* @param usernames Required . A list of usernames, comma-separated. You can specify up to 100 usernames. (required)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @return 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.
-
*/
public MultiUserLookupResponse findUsersByUsername(List usernames, Set expansions, Set tweetFields, Set userFields) throws ApiException {
ApiResponse localVarResp = findUsersByUsernameWithHttpInfo(usernames, expansions, tweetFields, userFields);
return localVarResp != null ? localVarResp.getData() : null;
}
/**
* Calls the API using a retry mechanism to handle rate limits errors.
*
*/
public MultiUserLookupResponse findUsersByUsername(Integer retries, List usernames, Set expansions, Set tweetFields, Set userFields) throws ApiException {
MultiUserLookupResponse localVarResp;
try{
localVarResp = findUsersByUsername(usernames, expansions, tweetFields, userFields);
} catch (ApiException e) {
if(handleRateLimit(e, retries)) {
return findUsersByUsername(retries - 1, usernames, expansions, tweetFields, userFields);
} else {
throw e;
}
}
return localVarResp;
}
/**
* User lookup by usernames
* This endpoint returns information about users. Specify users by their username.
* @param usernames Required . A list of usernames, comma-separated. You can specify up to 100 usernames. (required)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @return 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.
-
*/
public ApiResponse findUsersByUsernameWithHttpInfo(List usernames, Set expansions, Set tweetFields, Set userFields) throws ApiException {
okhttp3.Call localVarCall = findUsersByUsernameValidateBeforeCall(usernames, expansions, tweetFields, userFields, null);
try {
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} catch (ApiException e) {
e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken(){}.getType()));
throw e;
}
}
/**
* User lookup by usernames (asynchronously)
* This endpoint returns information about users. Specify users by their username.
* @param usernames Required . A list of usernames, comma-separated. You can specify up to 100 usernames. (required)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return 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.
-
*/
public okhttp3.Call findUsersByUsernameAsync(List usernames, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = findUsersByUsernameValidateBeforeCall(usernames, expansions, tweetFields, userFields, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for listGetFollowers
* @param id The ID of the List for which to return followers (required)
* @param maxResults The maximum number of results (optional, default to 100)
* @param paginationToken This parameter is used to get a specified 'page' of results. (optional)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @param _callback Callback for upload/download progress
* @return 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.
-
*/
public okhttp3.Call listGetFollowersCall(String id, Integer maxResults, Long paginationToken, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/2/lists/{id}/followers"
.replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (maxResults != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_results", maxResults));
}
if (paginationToken != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("pagination_token", paginationToken));
}
if (expansions != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "expansions", expansions));
}
if (tweetFields != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "tweet.fields", tweetFields));
}
if (userFields != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "user.fields", userFields));
}
final String[] localVarAccepts = {
"application/json", "application/problem+json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken", "OAuth2UserToken", "UserToken" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, reduceAuthNames(localVarAuthNames), _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call listGetFollowersValidateBeforeCall(String id, Integer maxResults, Long paginationToken, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling listGetFollowers(Async)");
}
okhttp3.Call localVarCall = listGetFollowersCall(id, maxResults, paginationToken, expansions, tweetFields, userFields, _callback);
return localVarCall;
}
/**
* Returns user objects that follow a List by the provided List ID
* Returns a list of users that follow a List by the provided List ID
* @param id The ID of the List for which to return followers (required)
* @param maxResults The maximum number of results (optional, default to 100)
* @param paginationToken This parameter is used to get a specified 'page' of results. (optional)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @return ListLookupMultipleUsersLookupResponse
* @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.
-
*/
public ListLookupMultipleUsersLookupResponse listGetFollowers(String id, Integer maxResults, Long paginationToken, Set expansions, Set tweetFields, Set userFields) throws ApiException {
ApiResponse localVarResp = listGetFollowersWithHttpInfo(id, maxResults, paginationToken, expansions, tweetFields, userFields);
return localVarResp != null ? localVarResp.getData() : null;
}
/**
* Calls the API using a retry mechanism to handle rate limits errors.
*
*/
public ListLookupMultipleUsersLookupResponse listGetFollowers(Integer retries, String id, Integer maxResults, Long paginationToken, Set expansions, Set tweetFields, Set userFields) throws ApiException {
ListLookupMultipleUsersLookupResponse localVarResp;
try{
localVarResp = listGetFollowers(id, maxResults, paginationToken, expansions, tweetFields, userFields);
} catch (ApiException e) {
if(handleRateLimit(e, retries)) {
return listGetFollowers(retries - 1, id, maxResults, paginationToken, expansions, tweetFields, userFields);
} else {
throw e;
}
}
return localVarResp;
}
/**
* Returns user objects that follow a List by the provided List ID
* Returns a list of users that follow a List by the provided List ID
* @param id The ID of the List for which to return followers (required)
* @param maxResults The maximum number of results (optional, default to 100)
* @param paginationToken This parameter is used to get a specified 'page' of results. (optional)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @return ApiResponse<ListLookupMultipleUsersLookupResponse>
* @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.
-
*/
public ApiResponse listGetFollowersWithHttpInfo(String id, Integer maxResults, Long paginationToken, Set expansions, Set tweetFields, Set userFields) throws ApiException {
okhttp3.Call localVarCall = listGetFollowersValidateBeforeCall(id, maxResults, paginationToken, expansions, tweetFields, userFields, null);
try {
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} catch (ApiException e) {
e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken(){}.getType()));
throw e;
}
}
/**
* Returns user objects that follow a List by the provided List ID (asynchronously)
* Returns a list of users that follow a List by the provided List ID
* @param id The ID of the List for which to return followers (required)
* @param maxResults The maximum number of results (optional, default to 100)
* @param paginationToken This parameter is used to get a specified 'page' of results. (optional)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return 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.
-
*/
public okhttp3.Call listGetFollowersAsync(String id, Integer maxResults, Long paginationToken, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = listGetFollowersValidateBeforeCall(id, maxResults, paginationToken, expansions, tweetFields, userFields, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for listGetMembers
* @param id The ID of the List for which to return members (required)
* @param maxResults The maximum number of results (optional, default to 100)
* @param paginationToken This parameter is used to get a specified 'page' of results. (optional)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @param _callback Callback for upload/download progress
* @return 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.
-
*/
public okhttp3.Call listGetMembersCall(String id, Integer maxResults, Long paginationToken, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/2/lists/{id}/members"
.replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (maxResults != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_results", maxResults));
}
if (paginationToken != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("pagination_token", paginationToken));
}
if (expansions != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "expansions", expansions));
}
if (tweetFields != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "tweet.fields", tweetFields));
}
if (userFields != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "user.fields", userFields));
}
final String[] localVarAccepts = {
"application/json", "application/problem+json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "BearerToken", "OAuth2UserToken", "UserToken" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, reduceAuthNames(localVarAuthNames), _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call listGetMembersValidateBeforeCall(String id, Integer maxResults, Long paginationToken, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling listGetMembers(Async)");
}
okhttp3.Call localVarCall = listGetMembersCall(id, maxResults, paginationToken, expansions, tweetFields, userFields, _callback);
return localVarCall;
}
/**
* Returns user objects that are members of a List by the provided List ID
* Returns a list of users that are members of a List by the provided List ID
* @param id The ID of the List for which to return members (required)
* @param maxResults The maximum number of results (optional, default to 100)
* @param paginationToken This parameter is used to get a specified 'page' of results. (optional)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @return ListLookupMultipleUsersLookupResponse
* @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.
-
*/
public ListLookupMultipleUsersLookupResponse listGetMembers(String id, Integer maxResults, Long paginationToken, Set expansions, Set tweetFields, Set userFields) throws ApiException {
ApiResponse localVarResp = listGetMembersWithHttpInfo(id, maxResults, paginationToken, expansions, tweetFields, userFields);
return localVarResp != null ? localVarResp.getData() : null;
}
/**
* Calls the API using a retry mechanism to handle rate limits errors.
*
*/
public ListLookupMultipleUsersLookupResponse listGetMembers(Integer retries, String id, Integer maxResults, Long paginationToken, Set expansions, Set tweetFields, Set userFields) throws ApiException {
ListLookupMultipleUsersLookupResponse localVarResp;
try{
localVarResp = listGetMembers(id, maxResults, paginationToken, expansions, tweetFields, userFields);
} catch (ApiException e) {
if(handleRateLimit(e, retries)) {
return listGetMembers(retries - 1, id, maxResults, paginationToken, expansions, tweetFields, userFields);
} else {
throw e;
}
}
return localVarResp;
}
/**
* Returns user objects that are members of a List by the provided List ID
* Returns a list of users that are members of a List by the provided List ID
* @param id The ID of the List for which to return members (required)
* @param maxResults The maximum number of results (optional, default to 100)
* @param paginationToken This parameter is used to get a specified 'page' of results. (optional)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @return ApiResponse<ListLookupMultipleUsersLookupResponse>
* @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.
-
*/
public ApiResponse listGetMembersWithHttpInfo(String id, Integer maxResults, Long paginationToken, Set expansions, Set tweetFields, Set userFields) throws ApiException {
okhttp3.Call localVarCall = listGetMembersValidateBeforeCall(id, maxResults, paginationToken, expansions, tweetFields, userFields, null);
try {
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} catch (ApiException e) {
e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken(){}.getType()));
throw e;
}
}
/**
* Returns user objects that are members of a List by the provided List ID (asynchronously)
* Returns a list of users that are members of a List by the provided List ID
* @param id The ID of the List for which to return members (required)
* @param maxResults The maximum number of results (optional, default to 100)
* @param paginationToken This parameter is used to get a specified 'page' of results. (optional)
* @param expansions A comma separated list of fields to expand. (optional)
* @param tweetFields A comma separated list of Tweet fields to display. (optional)
* @param userFields A comma separated list of User fields to display. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return 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.
-
*/
public okhttp3.Call listGetMembersAsync(String id, Integer maxResults, Long paginationToken, Set expansions, Set tweetFields, Set userFields, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = listGetMembersValidateBeforeCall(id, maxResults, paginationToken, expansions, tweetFields, userFields, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for tweetsIdLikingUsers
* @param id The ID of the Tweet for which to return results (required)
* @param maxResults The maximum number of results (optional, default to 100)
* @param paginationToken This parameter is used to get the next 'page' of results. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details