Rest Request
RestRequest
RestRequest Objects
class RestRequest()This is a base object that contains all you can do about Bundles.
constructor
function constructor()Constructor
Arguments:
ReferenceInternalOpenGateAPI - to the API object.
toJson
function toJson() -> '*'Returns:
*
update
function update()withAsyncResponseMaxTimeToWaitCallback
function withAsyncResponseMaxTimeToWaitCallback(asyncResponseMaxTimeToWaitCallback: string) -> 'RestRequest'Sets the async response with selected timeout
Arguments:
asyncResponseMaxTimeToWaitCallbackstring
Returns:
RestRequest
withBody
function withBody(restRequestBody: string) -> 'RestRequest'Sets the body for restRequest
Arguments:
restRequestBodystring
Returns:
RestRequest
withHeaders
function withHeaders(restRequestHeaders: string) -> 'RestRequest'Sets the header for restRequest
Arguments:
restRequestHeadersstring
Returns:
RestRequest
withIdentifier
function withIdentifier(identifier: string) -> 'RestRequest'Sets the identifier attribute
Arguments:
identifierstring
Returns:
RestRequest
withMethod
function withMethod(restRequestMethod: string) -> 'RestRequest'Sets the method for restRequest
Arguments:
restRequestMethodstring
Returns:
RestRequest
withOrganization
function withOrganization(organization: string) -> 'Channels'Set the organization attribute
Arguments:
organizationstring
Returns:
Channels
withScheduleCronExpression
function withScheduleCronExpression(cronExpression: string) -> 'RestRequest'Sets the crontab expression for schedule
Arguments:
cronExpressionstring
Returns:
RestRequest
withScheduleImmediateExecution
function withScheduleImmediateExecution(isImmediateExecution: boolean) -> 'RestRequest'Sets the isImmediateExecution attribute for schedule
Arguments:
isImmediateExecutionboolean
Returns:
RestRequest
withSyncResponseTimeout
function withSyncResponseTimeout(syncResponseTimeout: string) -> 'RestRequest'Sets the sync response with selected timeout
Arguments:
syncResponseTimeoutstring
Returns:
RestRequest
withUrl
function withUrl(restRequestUrl: string) -> 'RestRequest'Sets the url for restRequest
Arguments:
restRequestUrlstring
Returns:
RestRequest