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.
*/
public ApiAppGetResponse apiAppCreate(ApiAppCreateRequest apiAppCreateRequest) throws ApiException {
return apiAppCreateWithHttpInfo(apiAppCreateRequest).getData();
}
/**
* Create API App.
* Creates a new API App.
* @param apiAppCreateRequest (required)
* @return ApiResponse<ApiAppGetResponse>
* @throws ApiException if fails to make API call
* @http.response.details
*/
public ApiResponse apiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest) throws ApiException {
// Check required parameters
if (apiAppCreateRequest == null) {
throw new ApiException(400, "Missing the required parameter 'apiAppCreateRequest' when calling apiAppCreate");
}
String localVarAccept = apiClient.selectHeaderAccept("application/json");
Map localVarFormParams = new LinkedHashMap<>();
localVarFormParams = apiAppCreateRequest.createFormData();
boolean isFileTypeFound = !localVarFormParams.isEmpty();
String localVarContentType = isFileTypeFound? "multipart/form-data" : apiClient.selectHeaderContentType("application/json", "multipart/form-data");
String[] localVarAuthNames = new String[] {"api_key", "oauth2"};
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(
"ApiAppApi.apiAppCreate",
"/api_app",
"POST",
new ArrayList<>(),
isFileTypeFound ? null : apiAppCreateRequest,
new LinkedHashMap<>(),
new LinkedHashMap<>(),
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
localVarReturnType,
false
);
}
/**
* Delete API App.
* Deletes an API App. Can only be invoked for apps you own.
* @param clientId The client id of the API App to delete. (required)
* @throws ApiException if fails to make API call
* @http.response.details
*/
public void apiAppDelete(String clientId) throws ApiException {
apiAppDeleteWithHttpInfo(clientId);
}
/**
* Delete API App.
* Deletes an API App. Can only be invoked for apps you own.
* @param clientId The client id of the API App to delete. (required)
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
* @http.response.details
*/
public ApiResponse apiAppDeleteWithHttpInfo(String clientId) throws ApiException {
// Check required parameters
if (clientId == null) {
throw new ApiException(400, "Missing the required parameter 'clientId' when calling apiAppDelete");
}
// Path parameters
String localVarPath = "/api_app/{client_id}"
.replaceAll("\\{client_id}", apiClient.escapeString(clientId.toString()));
String localVarAccept = apiClient.selectHeaderAccept("application/json");
Map localVarFormParams = new LinkedHashMap<>();
localVarFormParams = new HashMap();
boolean isFileTypeFound = !localVarFormParams.isEmpty();
String localVarContentType = isFileTypeFound? "multipart/form-data" : apiClient.selectHeaderContentType();
String[] localVarAuthNames = new String[] {"api_key", "oauth2"};
return apiClient.invokeAPI(
"ApiAppApi.apiAppDelete",
localVarPath,
"DELETE",
new ArrayList<>(),
null,
new LinkedHashMap<>(),
new LinkedHashMap<>(),
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
null,
false
);
}
/**
* Get API App.
* Returns an object with information about an API App.
* @param clientId The client id of the API App to retrieve. (required)
* @return ApiAppGetResponse
* @throws ApiException if fails to make API call
* @http.response.details
*/
public ApiAppGetResponse apiAppGet(String clientId) throws ApiException {
return apiAppGetWithHttpInfo(clientId).getData();
}
/**
* Get API App.
* Returns an object with information about an API App.
* @param clientId The client id of the API App to retrieve. (required)
* @return ApiResponse<ApiAppGetResponse>
* @throws ApiException if fails to make API call
* @http.response.details
*/
public ApiResponse apiAppGetWithHttpInfo(String clientId) throws ApiException {
// Check required parameters
if (clientId == null) {
throw new ApiException(400, "Missing the required parameter 'clientId' when calling apiAppGet");
}
// Path parameters
String localVarPath = "/api_app/{client_id}"
.replaceAll("\\{client_id}", apiClient.escapeString(clientId.toString()));
String localVarAccept = apiClient.selectHeaderAccept("application/json");
Map localVarFormParams = new LinkedHashMap<>();
localVarFormParams = new HashMap();
boolean isFileTypeFound = !localVarFormParams.isEmpty();
String localVarContentType = isFileTypeFound? "multipart/form-data" : apiClient.selectHeaderContentType();
String[] localVarAuthNames = new String[] {"api_key", "oauth2"};
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(
"ApiAppApi.apiAppGet",
localVarPath,
"GET",
new ArrayList<>(),
null,
new LinkedHashMap<>(),
new LinkedHashMap<>(),
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
localVarReturnType,
false
);
}
/**
* List API Apps.
* Returns a list of API Apps that are accessible by you. If you are on a team with an Admin or Developer role, this list will include apps owned by teammates.
* @param page Which page number of the API App List to return. Defaults to `1`. (optional, default to 1)
* @param pageSize Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20)
* @return ApiAppListResponse
* @throws ApiException if fails to make API call
* @http.response.details
*/
public ApiAppListResponse apiAppList(Integer page, Integer pageSize) throws ApiException {
return apiAppListWithHttpInfo(page, pageSize).getData();
}
/**
* @see ApiAppApi#apiAppList(Integer, Integer)
*/
public ApiAppListResponse apiAppList() throws ApiException {
Integer page = 1;
Integer pageSize = 20;
return apiAppListWithHttpInfo(page, pageSize).getData();
}
/**
* @see ApiAppApi#apiAppListWithHttpInfo(Integer, Integer)
*/
public ApiResponse apiAppListWithHttpInfo() throws ApiException {
Integer page = 1;
Integer pageSize = 20;
return apiAppListWithHttpInfo(page, pageSize);
}
/**
* @see ApiAppApi#apiAppList(Integer, Integer)
*/
public ApiAppListResponse apiAppList(Integer page) throws ApiException {
Integer pageSize = 20;
return apiAppListWithHttpInfo(page, pageSize).getData();
}
/**
* @see ApiAppApi#apiAppListWithHttpInfo(Integer, Integer)
*/
public ApiResponse apiAppListWithHttpInfo(Integer page) throws ApiException {
Integer pageSize = 20;
return apiAppListWithHttpInfo(page, pageSize);
}
/**
* List API Apps.
* Returns a list of API Apps that are accessible by you. If you are on a team with an Admin or Developer role, this list will include apps owned by teammates.
* @param page Which page number of the API App List to return. Defaults to `1`. (optional, default to 1)
* @param pageSize Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20)
* @return ApiResponse<ApiAppListResponse>
* @throws ApiException if fails to make API call
* @http.response.details
*/
public ApiResponse apiAppListWithHttpInfo(Integer page, Integer pageSize) throws ApiException {
if (page == null) {
page = 1;
}
if (pageSize == null) {
pageSize = 20;
}
// Query parameters
List localVarQueryParams = new ArrayList<>(
apiClient.parameterToPairs("", "page", page)
);
localVarQueryParams.addAll(apiClient.parameterToPairs("", "page_size", pageSize));
String localVarAccept = apiClient.selectHeaderAccept("application/json");
Map localVarFormParams = new LinkedHashMap<>();
localVarFormParams = new HashMap();
boolean isFileTypeFound = !localVarFormParams.isEmpty();
String localVarContentType = isFileTypeFound? "multipart/form-data" : apiClient.selectHeaderContentType();
String[] localVarAuthNames = new String[] {"api_key", "oauth2"};
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI(
"ApiAppApi.apiAppList",
"/api_app/list",
"GET",
localVarQueryParams,
null,
new LinkedHashMap<>(),
new LinkedHashMap<>(),
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
localVarReturnType,
false
);
}
/**
* Update API App.
* Updates an existing API App. Can only be invoked for apps you own. Only the fields you provide will be updated. If you wish to clear an existing optional field, provide an empty string.
* @param clientId The client id of the API App to update. (required)
* @param apiAppUpdateRequest (required)
* @return ApiAppGetResponse
* @throws ApiException if fails to make API call
* @http.response.details
*/
public ApiAppGetResponse apiAppUpdate(String clientId, ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException {
return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest).getData();
}
/**
* Update API App.
* Updates an existing API App. Can only be invoked for apps you own. Only the fields you provide will be updated. If you wish to clear an existing optional field, provide an empty string.
* @param clientId The client id of the API App to update. (required)
* @param apiAppUpdateRequest (required)
* @return ApiResponse<ApiAppGetResponse>
* @throws ApiException if fails to make API call
* @http.response.details