SysGetSegmentList
Returns a list of all segments with basic meta-data. i.e. does not include the criteria details.
Service | Operation |
---|---|
segment | SYS_GET_SEGMENT_LIST |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var segmentProxy = bridge.getSegmentServiceProxy();
var postResult = segmentProxy.sysGetSegmentList();
if (postResult.status == 200) {
// Success!
}
{
"service": "segment",
"operation": "SYS_GET_SEGMENT_LIST",
"data": {}
}
JSON Response
{
"data": {
"segments": [
{
"segmentId": 1,
"name": "segmentname",
"description": "a/b test id less than 30",
"testersOnly": false,
"createdAt": 1591891097875,
"updatedAt": 1591891108642,
"version": 2
},
{
"segmentId": 2,
"name": "another segment",
"description": "xp level great than 2",
"testersOnly": false,
"createdAt": 1591891221983,
"updatedAt": 1591891227208,
"version": 2
}
]
},
"status": 200
}