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.
/*
* Confidentify API
* Services that let you build confidence and identify matches in customer data. ## Features overview * Contact data processing services (tagged with `process`) which offer validation and enrichment backed by inference and knowledge on complex data types such as names, email addresses, phone numbers. * Data matching and searching services (tagged with `matching`) that allow you to identify duplicated data or matches against third party contact data list. * Dataset management services (tagged with `dataset`) that allow record storage and retrieval. ## Integrator notes: * Use the `/auth` endpoint to get an access token. Access tokens are temporary, so design the client the be capable of renewing it. * The APIs are rate-limited, so design the client to be capable of retrying with some delay upon HTTP 429 responses.
*
* The version of the OpenAPI document: 1.1.0
*
*
* 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.confidentify.client.api;
import com.confidentify.client.ApiCallback;
import com.confidentify.client.ApiClient;
import com.confidentify.client.ApiException;
import com.confidentify.client.ApiResponse;
import com.confidentify.client.Configuration;
import com.confidentify.client.Pair;
import com.confidentify.client.ProgressRequestBody;
import com.confidentify.client.ProgressResponseBody;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import com.confidentify.client.model.ConfidentifyAccountCreateRequest;
import com.confidentify.client.model.ConfidentifyAccountResponse;
import com.confidentify.client.model.ConfidentifyAccountUpdateRequest;
import com.confidentify.client.model.ConfidentifyUserResponse;
import com.confidentify.client.model.ConfidentifyUserUpdateRequest;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class AccountsApi {
private ApiClient localVarApiClient;
public AccountsApi() {
this(Configuration.getDefaultApiClient());
}
public AccountsApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public ApiClient getApiClient() {
return localVarApiClient;
}
public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
/**
* Build call for accountByIdGet
* @param accountId An account ID or `_` for your own account. (required)
* @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
Success
-
404
Not found The account was not found
-
*/
public okhttp3.Call accountByIdGetCall(String accountId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/accounts/{account_id}"
.replaceAll("\\{" + "account_id" + "\\}", localVarApiClient.escapeString(accountId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "bearerAuth", "oAuth2ClientCredentials" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call accountByIdGetValidateBeforeCall(String accountId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'accountId' is set
if (accountId == null) {
throw new ApiException("Missing the required parameter 'accountId' when calling accountByIdGet(Async)");
}
okhttp3.Call localVarCall = accountByIdGetCall(accountId, _callback);
return localVarCall;
}
/**
* Get account information
*
* @param accountId An account ID or `_` for your own account. (required)
* @return ConfidentifyAccountResponse
* @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
Success
-
404
Not found The account was not found
-
*/
public ConfidentifyAccountResponse accountByIdGet(String accountId) throws ApiException {
ApiResponse localVarResp = accountByIdGetWithHttpInfo(accountId);
return localVarResp.getData();
}
/**
* Get account information
*
* @param accountId An account ID or `_` for your own account. (required)
* @return ApiResponse<ConfidentifyAccountResponse>
* @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
Success
-
404
Not found The account was not found
-
*/
public ApiResponse accountByIdGetWithHttpInfo(String accountId) throws ApiException {
okhttp3.Call localVarCall = accountByIdGetValidateBeforeCall(accountId, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Get account information (asynchronously)
*
* @param accountId An account ID or `_` for your own account. (required)
* @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
Success
-
404
Not found The account was not found
-
*/
public okhttp3.Call accountByIdGetAsync(String accountId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = accountByIdGetValidateBeforeCall(accountId, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for accountByIdUpdate
* @param accountId An account ID or `_` for your own account. (required)
* @param confidentifyAccountUpdateRequest (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
Success
-
404
Not found The account was not found
-
*/
public okhttp3.Call accountByIdUpdateCall(String accountId, ConfidentifyAccountUpdateRequest confidentifyAccountUpdateRequest, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = confidentifyAccountUpdateRequest;
// create path and map variables
String localVarPath = "/accounts/{account_id}"
.replaceAll("\\{" + "account_id" + "\\}", localVarApiClient.escapeString(accountId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "bearerAuth", "oAuth2ClientCredentials" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call accountByIdUpdateValidateBeforeCall(String accountId, ConfidentifyAccountUpdateRequest confidentifyAccountUpdateRequest, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'accountId' is set
if (accountId == null) {
throw new ApiException("Missing the required parameter 'accountId' when calling accountByIdUpdate(Async)");
}
okhttp3.Call localVarCall = accountByIdUpdateCall(accountId, confidentifyAccountUpdateRequest, _callback);
return localVarCall;
}
/**
* Update account information
*
* @param accountId An account ID or `_` for your own account. (required)
* @param confidentifyAccountUpdateRequest (optional)
* @return ConfidentifyAccountResponse
* @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
Success
-
404
Not found The account was not found
-
*/
public ConfidentifyAccountResponse accountByIdUpdate(String accountId, ConfidentifyAccountUpdateRequest confidentifyAccountUpdateRequest) throws ApiException {
ApiResponse localVarResp = accountByIdUpdateWithHttpInfo(accountId, confidentifyAccountUpdateRequest);
return localVarResp.getData();
}
/**
* Update account information
*
* @param accountId An account ID or `_` for your own account. (required)
* @param confidentifyAccountUpdateRequest (optional)
* @return ApiResponse<ConfidentifyAccountResponse>
* @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
Success
-
404
Not found The account was not found
-
*/
public ApiResponse accountByIdUpdateWithHttpInfo(String accountId, ConfidentifyAccountUpdateRequest confidentifyAccountUpdateRequest) throws ApiException {
okhttp3.Call localVarCall = accountByIdUpdateValidateBeforeCall(accountId, confidentifyAccountUpdateRequest, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Update account information (asynchronously)
*
* @param accountId An account ID or `_` for your own account. (required)
* @param confidentifyAccountUpdateRequest (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
Success
-
404
Not found The account was not found
-
*/
public okhttp3.Call accountByIdUpdateAsync(String accountId, ConfidentifyAccountUpdateRequest confidentifyAccountUpdateRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = accountByIdUpdateValidateBeforeCall(accountId, confidentifyAccountUpdateRequest, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for accountCreate
* @param confidentifyAccountCreateRequest (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
Success
-
400
Bad request
-
*/
public okhttp3.Call accountCreateCall(ConfidentifyAccountCreateRequest confidentifyAccountCreateRequest, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = confidentifyAccountCreateRequest;
// create path and map variables
String localVarPath = "/accounts";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "bearerAuth", "oAuth2ClientCredentials" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call accountCreateValidateBeforeCall(ConfidentifyAccountCreateRequest confidentifyAccountCreateRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = accountCreateCall(confidentifyAccountCreateRequest, _callback);
return localVarCall;
}
/**
* Create new account
*
* @param confidentifyAccountCreateRequest (optional)
* @return ConfidentifyAccountResponse
* @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
Success
-
400
Bad request
-
*/
public ConfidentifyAccountResponse accountCreate(ConfidentifyAccountCreateRequest confidentifyAccountCreateRequest) throws ApiException {
ApiResponse localVarResp = accountCreateWithHttpInfo(confidentifyAccountCreateRequest);
return localVarResp.getData();
}
/**
* Create new account
*
* @param confidentifyAccountCreateRequest (optional)
* @return ApiResponse<ConfidentifyAccountResponse>
* @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
Success
-
400
Bad request
-
*/
public ApiResponse accountCreateWithHttpInfo(ConfidentifyAccountCreateRequest confidentifyAccountCreateRequest) throws ApiException {
okhttp3.Call localVarCall = accountCreateValidateBeforeCall(confidentifyAccountCreateRequest, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Create new account (asynchronously)
*
* @param confidentifyAccountCreateRequest (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
Success
-
400
Bad request
-
*/
public okhttp3.Call accountCreateAsync(ConfidentifyAccountCreateRequest confidentifyAccountCreateRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = accountCreateValidateBeforeCall(confidentifyAccountCreateRequest, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for userByIdGet
* @param accountId An account ID or `_` for your own account. (required)
* @param username A username or `_` for your own username. (required)
* @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
Success
-
404
Not found The user was not found
-
*/
public okhttp3.Call userByIdGetCall(String accountId, String username, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/accounts/{account_id}/users/{username}"
.replaceAll("\\{" + "account_id" + "\\}", localVarApiClient.escapeString(accountId.toString()))
.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();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "bearerAuth", "oAuth2ClientCredentials" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call userByIdGetValidateBeforeCall(String accountId, String username, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'accountId' is set
if (accountId == null) {
throw new ApiException("Missing the required parameter 'accountId' when calling userByIdGet(Async)");
}
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException("Missing the required parameter 'username' when calling userByIdGet(Async)");
}
okhttp3.Call localVarCall = userByIdGetCall(accountId, username, _callback);
return localVarCall;
}
/**
* Get user information
*
* @param accountId An account ID or `_` for your own account. (required)
* @param username A username or `_` for your own username. (required)
* @return ConfidentifyUserResponse
* @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
Success
-
404
Not found The user was not found
-
*/
public ConfidentifyUserResponse userByIdGet(String accountId, String username) throws ApiException {
ApiResponse localVarResp = userByIdGetWithHttpInfo(accountId, username);
return localVarResp.getData();
}
/**
* Get user information
*
* @param accountId An account ID or `_` for your own account. (required)
* @param username A username or `_` for your own username. (required)
* @return ApiResponse<ConfidentifyUserResponse>
* @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
Success
-
404
Not found The user was not found
-
*/
public ApiResponse userByIdGetWithHttpInfo(String accountId, String username) throws ApiException {
okhttp3.Call localVarCall = userByIdGetValidateBeforeCall(accountId, username, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Get user information (asynchronously)
*
* @param accountId An account ID or `_` for your own account. (required)
* @param username A username or `_` for your own username. (required)
* @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
Success
-
404
Not found The user was not found
-
*/
public okhttp3.Call userByIdGetAsync(String accountId, String username, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = userByIdGetValidateBeforeCall(accountId, username, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for userByIdUpdate
* @param accountId An account ID or `_` for your own account. (required)
* @param username A username or `_` for your own username. (required)
* @param confidentifyUserUpdateRequest (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
Success
-
404
Not found The user was not found
-
*/
public okhttp3.Call userByIdUpdateCall(String accountId, String username, ConfidentifyUserUpdateRequest confidentifyUserUpdateRequest, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = confidentifyUserUpdateRequest;
// create path and map variables
String localVarPath = "/accounts/{account_id}/users/{username}"
.replaceAll("\\{" + "account_id" + "\\}", localVarApiClient.escapeString(accountId.toString()))
.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();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "bearerAuth", "oAuth2ClientCredentials" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call userByIdUpdateValidateBeforeCall(String accountId, String username, ConfidentifyUserUpdateRequest confidentifyUserUpdateRequest, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'accountId' is set
if (accountId == null) {
throw new ApiException("Missing the required parameter 'accountId' when calling userByIdUpdate(Async)");
}
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException("Missing the required parameter 'username' when calling userByIdUpdate(Async)");
}
okhttp3.Call localVarCall = userByIdUpdateCall(accountId, username, confidentifyUserUpdateRequest, _callback);
return localVarCall;
}
/**
* Update user information
*
* @param accountId An account ID or `_` for your own account. (required)
* @param username A username or `_` for your own username. (required)
* @param confidentifyUserUpdateRequest (optional)
* @return ConfidentifyUserResponse
* @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
Success
-
404
Not found The user was not found
-
*/
public ConfidentifyUserResponse userByIdUpdate(String accountId, String username, ConfidentifyUserUpdateRequest confidentifyUserUpdateRequest) throws ApiException {
ApiResponse localVarResp = userByIdUpdateWithHttpInfo(accountId, username, confidentifyUserUpdateRequest);
return localVarResp.getData();
}
/**
* Update user information
*
* @param accountId An account ID or `_` for your own account. (required)
* @param username A username or `_` for your own username. (required)
* @param confidentifyUserUpdateRequest (optional)
* @return ApiResponse<ConfidentifyUserResponse>
* @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
Success
-
404
Not found The user was not found
-
*/
public ApiResponse userByIdUpdateWithHttpInfo(String accountId, String username, ConfidentifyUserUpdateRequest confidentifyUserUpdateRequest) throws ApiException {
okhttp3.Call localVarCall = userByIdUpdateValidateBeforeCall(accountId, username, confidentifyUserUpdateRequest, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Update user information (asynchronously)
*
* @param accountId An account ID or `_` for your own account. (required)
* @param username A username or `_` for your own username. (required)
* @param confidentifyUserUpdateRequest (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
Success
-
404
Not found The user was not found
-
*/
public okhttp3.Call userByIdUpdateAsync(String accountId, String username, ConfidentifyUserUpdateRequest confidentifyUserUpdateRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = userByIdUpdateValidateBeforeCall(accountId, username, confidentifyUserUpdateRequest, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
}