curl --request GET \
--url 'https://backend.testeswaffle.org/streaks/[email protected]'
{
"success": true,
"data": {
"isFirstAccess": false,
"goals": [
{
"daysToMaintain": 7,
"gift": "Adesivos exclusivos do the news",
"emoji": "🎯",
"alreadyCompletedThisGoal": true,
"wantsToReceiveTheGift": "WANT"
},
{
"daysToMaintain": 30,
"gift": "Camiseta oficial do the news",
"emoji": "👕",
"alreadyCompletedThisGoal": false,
"wantsToReceiveTheGift": "NEVER_REPLIED"
},
{
"daysToMaintain": 90,
"gift": "Kit completo de presentes",
"emoji": "🎁",
"alreadyCompletedThisGoal": false,
"wantsToReceiveTheGift": "NEVER_REPLIED"
}
]
}
}
Obtém as missões de streak disponíveis para um leitor
curl --request GET \
--url 'https://backend.testeswaffle.org/streaks/[email protected]'
{
"success": true,
"data": {
"isFirstAccess": false,
"goals": [
{
"daysToMaintain": 7,
"gift": "Adesivos exclusivos do the news",
"emoji": "🎯",
"alreadyCompletedThisGoal": true,
"wantsToReceiveTheGift": "WANT"
},
{
"daysToMaintain": 30,
"gift": "Camiseta oficial do the news",
"emoji": "👕",
"alreadyCompletedThisGoal": false,
"wantsToReceiveTheGift": "NEVER_REPLIED"
},
{
"daysToMaintain": 90,
"gift": "Kit completo de presentes",
"emoji": "🎁",
"alreadyCompletedThisGoal": false,
"wantsToReceiveTheGift": "NEVER_REPLIED"
}
]
}
}
Show properties
Show goal object
curl --request GET \
--url 'https://backend.testeswaffle.org/streaks/[email protected]'
{
"success": true,
"data": {
"isFirstAccess": false,
"goals": [
{
"daysToMaintain": 7,
"gift": "Adesivos exclusivos do the news",
"emoji": "🎯",
"alreadyCompletedThisGoal": true,
"wantsToReceiveTheGift": "WANT"
},
{
"daysToMaintain": 30,
"gift": "Camiseta oficial do the news",
"emoji": "👕",
"alreadyCompletedThisGoal": false,
"wantsToReceiveTheGift": "NEVER_REPLIED"
},
{
"daysToMaintain": 90,
"gift": "Kit completo de presentes",
"emoji": "🎁",
"alreadyCompletedThisGoal": false,
"wantsToReceiveTheGift": "NEVER_REPLIED"
}
]
}
}