POST
/
calculate-streak
curl --request POST \
  --url http://dolphinflashcards.com/api/calculate-streak \
  --header 'Content-Type: application/json' \
  --data '{
  "userID": "123"
}'
[
  {
    "200": 123,
    "streak": "1"
  }
]

Query Parameters

increase
boolean

Can be added to the query string to increase a user's streak. If needed, set increase = true

Body

application/json

Response

200
application/json
OK.

The response is of type array.