Table of Contents |
---|
...
Input can be provided in the form of HTTP GET URL parameters or an HTTP POST/PUT body that is in application/x-www-form-urlencoded
. Most parameters are optional, when this is not the case this is mentioned in the documentation. Dates and times can be specified in one of the following format:
- 'today' or 'tomorrow' for the current or next day at 0:00;
- Unix timestamp format;
- ISO 8601 format (
yyyy-MM-ddTHH:mm:ss±HH:mm
): elements on the right side (time, time zone) are optional; - Legacy format (
YYYY/MM/DD HH:MM
): the time is optional.
Authentication and authorisation
...
Response Code: 204 (No content)
/user
Description: Query information on the current user. Currently this only returns the username, since other information is usually not available.
Method: GET
Parameters: none
Request URL
Code Block | ||
---|---|---|
| ||
$base_url/api/v0/user |
Example response body
Code Block | ||
---|---|---|
| ||
{
"username": "testuser"
} |
/weeklabels
Description: Query the weeklabels. This provides custom labels for the weeks when available. The response includes a value (the custom label) and a week (year - 1900 + the ISO week number).
...