execute

execute


abstract suspend fun execute(apiRequest: ApiRequest): MIRACLResult<String, MIRACLException>

executes HTTP requests.

Return

MIRACLResult which can be either MIRACLSuccess with value of type String (the response of the executed request) or MIRACLError with value of type java.lang.Error with a message.

Parameters

apiRequest provides the required information for processing the HTTP request.