//library/com.uploadcare.android.library.api/RequestHelper/executeCommand

executeCommand

[androidJvm]
Content
fun executeCommand(requestType: String, url: String, apiHeaders: Boolean, requestBody: RequestBody? = null, requestBodyMD5: String? = null): Response
More info

Executes the request et the Uploadcare API and return the HTTP Response object.

The existence of this method(and it’s return type) enables the end user to extend the functionality of the Uploadcare API client by creating a subclass of com.uploadcare.android.library.api.UploadcareClient.

Return

HTTP Response object

Parameters

androidJvm

Name Summary
apiHeaders

TRUE if the default API headers should be set

requestBody

body of POST request, used only with request type REQUEST_POST.

requestType

request type (ex. “GET”, “POST”, “DELETE”);

url

request url