HONK(3) | Library Functions Manual | HONK(3) |
honk
— API
access
In addition to the standard web interface, some functionality is
available via the honk
HTTP API.
With the exception of login, all requests should contain the following form values.
The API URL for all actions other than login and logout is /api.
Send a POST request to /dologin with the following form values.
This will return a token to be used for future requests. The token is valid for one year.
Send a request to /logout with the token to be expired.
The action value should be “honk”. The following values are recognized:
Upon success, the honk action will return the URL for the created honk.
The “gethonks” action can be used to query for honks. The following parameters are used.
The result will be returned as json.
Send anything. No limits, no error checking.
Refer to the sample code in the toys directory.
December 25, 2019 | OpenBSD 6.6 |