Skip to content

Get Usage

GET
https://api.gamification.marshalldoes.dev/v1/player/usage

Records and fetches the usage of this service. It increments a counter every time it is called to count as one ‘access’, and returns the last X days of accesses. It uses days since the unix epoch and relies on a self-reported day to support varying timezones. Returns an array of the amount of times the user has accessed this service, one record per day for the last X days. The last entry is today

day
integer format: int32

The day since the unix epoch in users local timezone

OK

object
accessDays
required
Array<integer>
startDay
required
integer format: int32

Unauthorized

string