Skip to main content
GET
/
streaks
/
history
curl --request GET \
  --url 'https://backend.testeswaffle.org/streaks/[email protected]'
{
  "success": true,
  "data": [
    {
      "postId": "post_123456",
      "postTitle": "Como manter seu streak de leitura",
      "readAt": "2024-01-20T10:30:00Z",
      "utm_source": "newsletter",
      "utm_medium": "email",
      "utm_campaign": "daily_news"
    },
    {
      "postId": "post_123457",
      "postTitle": "Os benefícios da leitura diária",
      "readAt": "2024-01-19T09:15:00Z",
      "utm_source": "website",
      "utm_medium": "organic",
      "utm_campaign": null
    }
  ]
}

Descrição

Obtém o histórico completo de leituras de um usuário, incluindo posts lidos e datas.

Query Parameters

email
string
required
Email do usuário

Response

success
boolean
Indica se a operação foi bem-sucedida
data
array
Lista de leituras do usuário
curl --request GET \
  --url 'https://backend.testeswaffle.org/streaks/[email protected]'
{
  "success": true,
  "data": [
    {
      "postId": "post_123456",
      "postTitle": "Como manter seu streak de leitura",
      "readAt": "2024-01-20T10:30:00Z",
      "utm_source": "newsletter",
      "utm_medium": "email",
      "utm_campaign": "daily_news"
    },
    {
      "postId": "post_123457",
      "postTitle": "Os benefícios da leitura diária",
      "readAt": "2024-01-19T09:15:00Z",
      "utm_source": "website",
      "utm_medium": "organic",
      "utm_campaign": null
    }
  ]
}

Query Parameters

email
string<email>
required

Email do usuário

Response

200 - application/json

Histórico obtido com sucesso

success
boolean
data
object[]