RefreshMySegments
Refreshes the segments for the current user. Available via cloud-code only.
Note that segments are already automatically refreshed upon authentication – this method can be used to cause segments to refresh mid-session - for example, after completing a level.
Service | Operation |
---|---|
segment | REFRESH_MY_SEGMENTS |
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.refreshMySegments();
if (postResult.status == 200) {
// Success!
}
{
"service": "segment",
"operation": "REFRESH_MY_SEGMENTS",
"data": {}
}
JSON Response
{
"data": {},
"status": 200
}