Skip to main content
Version: 5.7.0

PostTextResponseText

{
"packetId": 1,
"messages": [
{
"service": "httpClient",
"operation": "POST_TEXT_RESPONSE_TEXT",
"data": {
"serviceCode": 1,
"path": "path/to/resource",
"headers": {
"1": "Player Name",
"2": 2235
},
"text": "Text doc"
}
}
]
}

This operation posts a Text document and expects a Text document in response.

Results

NameDescription
responseText response
ServiceOperation
httpClientPOST_TEXT_RESPONSE_TEXT

Method Parameters

ParameterDescription
serviceCodeService code of the external service configured in the Cloud Code - Web Services section of the portal.
pathPath to append to the Base URL of the service.
headersOptional map of extra headers.
textA text document.

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.
JSON Response
{
"packetId": 1,
"messageResponses": [
{
"status": 200,
"data": {
"response": "Text response"
}
}
]
}