Skip to main content
GET
/
streaks
/
missions
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"
      }
    ]
  }
}

Descrição

Obtém as missões de streak disponíveis para um leitor, incluindo progresso e preferências de presentes.

Query Parameters

email
string
required
Email do leitor

Response

success
boolean
Indica se a operação foi bem-sucedida
data
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"
      }
    ]
  }
}

Query Parameters

email
string<email>
required

Email do leitor

Response

200 - application/json

Missões obtidas com sucesso

success
boolean
data
object