ADNUNTIUS
Search…
Get user segments
The example below shows how you would read a user's segments, in folder 00000000000aaaaa, using the javascript API.
1
<script src="https://cdn.adnuntius.com/adn.js" async></script>
2
<script>
3
window.adn = window.adn || {};
4
adn.calls = adn.calls || [];
5
adn.calls.push(function () {
6
adn.getSegments('00000000000aaaaa', {
7
onResponse: function(data) {
8
// Do something with segments from data
9
// Example response looks like this:
10
//
11
// {
12
// expiryEpochMillis: 1630918773608,
13
// segments: ["segmentId1", "segmentId2"]
14
// }
15
}
16
});
17
});
18
</script>
Copied!
Last modified 4mo ago
Copy link