Skip to main content
Version: 5.7.0

SysGetMilestonePageOffset

Retrieves the next/prev page of milestones.

Note that this call does not return milestones (i.e. tasks) that are embedded within Quests. Use the Quests API for those.

See the Generic Paged Queries documentation for creating the context object.

ServiceOperation
gamificationSYS_GET_MILESTONE_PAGE_OFFSET

Method Parameters

ParameterDescription
encodedContextThe json context from the previous page request.
pageOffsetThe positive or negative page offset to fetch. Uses the last page retrieved using the context string to determine a starting point.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status": 200,
"data": {
"context": "eyJzZWFyY2hDcml0ZXa...",
"results": {
"count": 3,
"page": 2,
"items": [
{
"milestoneId": "3",
"questId": null,
"title": "Egg Crusher",
"description": "Crushing Eggs lifetime milestone",
"category": "mission",
"extraData": {
"batmanIs": "awesome2"
},
"rewards": {
"experiencePoints": 30,
"achievement": "ACH001",
"currency": {
"coins": 5
},
"globalStatistics": {
"globalxp": 30
},
"statistics": {
"a3": 1,
"secretMissions": 1
}
},
"thresholds": {
"playerStatistics": {
"experienceLevel": 1,
"experiencePoints": 10,
"statistics": {
"returningDay": 7
}
}
},
"unlockThresholds": {
"playerStatistics": {
"experienceLevel": 2,
"experiencePoints": 10,
"statistics": {
"foodc": 5
}
},
"globalStatistics": {
"food_unlock": 1
}
},
"createdAt": 1574691758570,
"updatedAt": 1574691922583,
"version": 4
}
],
"moreAfter": false,
"moreBefore": true
}
}
}