POST
/
calculate-streak
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
userID
string
required

The unique identifier of the user to calculate the streak for.

Example:

"user1"

Response

OK.

200
integer

HTTP status code indicating a successful operation.

streak
string

Specifies the user's calculated streak.

Example:

"1"