HttpApi.get(requestUrl)
or
HttpApi.get(requestUrl, headers)
or
HttpApi.get(requestUrl, headers, retryCount, waitTime)
or
HttpApi.getWithRetry(requestUrl, headers)
HTTP Post with the body and optionally headers and retrieve returning object.
HttpApi.post(requestUrl, body)
or
HttpApi.post(requestUrl, body, headers)
or
HttpApi.postAsString(requestUrl, body)
or
HttpApi.postAsString(requestUrl, body, headers)
or
HttpApi.postFormData(requestUrl, body, headers)
or
HttpApi.postFormDataAsString(requestUrl, body, headers)
or
HttpApi.postSOAP(soapUrl, body, headers)
Parameters
requestUrl: requested URL (string)
body: body of the request (dictionary)
headers: headers (dictionary)
Returns
The response object from the POST request.
put
Execute HTTP put with a given body and a header to the requested URL.
HttpApi.put(requestUrl, body)
or
HttpApi.put(requestUrl, body, headers)
Execute HTTP delete with a body and a header to a requested URL.
HttpApi.delete(requestUrl, body)
or
HttpApi.delete(requestUrl, body, headers)
Parameters
requestUrl: requested url (string)
body: body of the request (dictionary)
headers: headers (dictionary)
Returns
the result of the operation
getAsString
Description...
HttpApi.getAsString(requestUrl, contentType, body)
or
HttpApi.getAsString(requestUrl, contentType, body, headers)
or
HttpApi.getAsString(requestUrl, contentType)
or
HttpApi.getAsString(requestUrl, contentType, headers)
Parameters
requestUrl (string)
body (dictionary)
contentType (string)
headers (dictionary)
Returns
Result
postAsString
Description...
HttpApi.postAsString(requestUrl, body)
or
HttpApi.postAsString(requestUrl, body, headers)
Parameters
requestUrl (string)
body (object)
headers (dictionary)
Returns
Result
putAsString
Description...
HttpApi.putAsString(requestUrl, body)
or
HttpApi.putAsString(requestUrl, body, headers)
Parameters
requestUrl (string)
body (object)
headers (dictionary)
Returns
Result
patchAsString
Description...
HttpApi.patchAsString(requestUrl, body)
or
HttpApi.patchAsString(requestUrl, body, headers)
Parameters
requestUrl (string)
body (object)
headers (dictionary)
Returns
Result
deleteAsString
Description...
HttpApi.deleteAsString(requestUrl, body)
or
HttpApi.deleteAsString(requestUrl, body, headers)
Parameters
requestUrl (string)
body (object)
headers (dictionary)
Returns
Result
readFileAsJSON
Description...
HttpApi.readFileAsJSON(String url,
Map<String, String> headerMap)
or
HttpApi.readFileAsJSON(url, encoding, headerMap)