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

executeCommandAsync

[androidJvm]
Content
fun executeCommandAsync(context: Context, requestType: String, url: String, apiHeaders: Boolean, callback: RequestCallback? = null, requestBody: RequestBody? = null, requestBodyMD5: String? = null)
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.

Parameters

androidJvm

Name Summary
apiHeaders

TRUE if the default API headers should be set

callback

callback RequestCallback

context

application context. @link android.content.Context

requestBody

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

requestType

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

url

request url