get https://api.imiconnect.iohttps://rtmapp.imiconnect.io/rtmsAPI/api/v1/apps/$(appid)/segments
This API is used to list the segments of a specific appId.
Request
The List Segment request is specified as follows:
Request Headers
Request Header | Description |
---|---|
secretKey | Secret key generated in backend application. |
content-type | application/json |
Response Example
{
"segments" : [{
"id" : "59424c2ce4b0649ee1ef90ba",
"criteria" : "News",
"created_on" : "2017-06-15T14:28:20.263Z",
"name" : "RTTopicCriteria",
"updated_on" : "2017-06-15T15:19:44.102Z"
},
{
"id" : "59425adde4b0649ee1ef90bc",
"criteria" : "Channels",
"created_on" : "2017-06-15T15:19:44.102Z",
"name" : "channel",
"updated_on" : "2017-06-15T18:19:44.102Z"
}
],
"trans_id" : "0c19ad72-179c-4d89-bf6d-2e104e3d62f5",
"description" : "success",
"code" : "0"
}