protected fun execPost(endpoint: String, payload: APIRequest.Params = Params()): JSONObject
Function to execute a RequestMethod.POST
request to the backend
Return
the result of the request as JSONObject
Parameters
: the endpoint path of the request
url
: the payload of the request