GetMySegmentsLegacy
Returns the segments for the current user - in legacy format (i.e. using the existing, numeric segment ids). Available via cloud-code only.
Service | Operation |
---|---|
segment | GET_MY_SEGMENTS_LEGACY |
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.getMySegmentsLegacy();
if (postResult.status == 200) {
// Success!
}
{
"service": "segment",
"operation": "GET_MY_SEGMENTS_LEGACY",
"data": {}
}
JSON Response
{
"data": {
"segments": [
{
"segmentId": 1,
"name": "segmentname"
},
{
"segmentId": 2,
"name": "another segment"
}
]
},
"status": 200
}