Get sample details

Request:

curl --location 'https://sms.etelecom.vn/api/TemplateOmni/GetTemplate' \
--data '{
    "username":"string",
    "password":"string",
    "itemcount": <int64>,
    "page": <int64>
}'

Request body structure

Status
Response
Description

200

{ "ListTemp":[ { "templateCode":"XXXXX", "contentRegex":"XXXXX", "contentChannel":{ "1":"XXXXX", "2":"XXXXX", "3":"XXXXX" }, "paramsFormat":{ "XXXX":{ "regex":"\b.{0,30}\b",

"type":"normal" }, "YYYYY":{ "regex":"\b.{0,100}\b", "type":" normal" } }, "senderChannel":{ "1":"XXXXX", "2":"XXXXX", "3":"XXXXX" }, "timeSwitchChannel":0 } ], "TotalItem":6, "Page":1 }

ListTemp : list of templates in current pagination. TotalItem : total current templates. Page : current pagination. **Note: template object will have the form: - templateCode: template code used to call api - contentRegex: template content - contentChannel: content for each channel. - paramsFormat: template variable format including regex and variable type - senderChannel: send identifier for each channel - timeSwitchChannel: time limit for switching channels when failed

401

Unauthorized

Wrong username and password

401

Can't access from this IP

User's IP is not in the system whitelist

Last updated