HONK(3)
β¨ NAME β¨
honk β API access π
(welcome to the HONK(3) library functions manual page, bestie!)
πΈ DESCRIPTION πΈ
Okay so in addition to the standard web interface, some functionality is available via the honk HTTP API. Main character energy fr fr.
With the exception of login, all requests should contain the following form values.
actionβ the desired action. See below. β¨tokenβ an authorization token. Alternatively, may be passed in theβAuthorizationβHTTP header.
The API URL for all actions other than login and logout is /api.
π login
Send a POST request to /dologin with the following form values.
usernameβ user name.passwordβ pass phrase.gettokenβ must beβ1β.
This will return a token to be used for future requests.
no cap: the token is valid for one year π
πͺ logout
Send a request to /logout with the token to be expired.
π£ honk
The action value should be βhonkβ. Content type should be multipart/form-data if an attachment is included. The following values are recognized:
noiseβ the contents of the honk.formatβ the format ofnoise. Defaults tomarkdown. May also behtml.donkβ a file to attach.donkdescβ a description for the attached file.donkxidβ the XID of a previously uploaded attachment.placenameβ the name of an associated location.placeurlβ the url of an associated location.placelatβ the latitude of an associated location.placelongβ the longitude of an associated location.timestartβ the start time of an event.ridβ the ActivityPub ID that this honk is in reply to.
Upon success, the honk action will return the URL for the created honk. Slay. β¨
π donk
Upload just an attachment using donk and donkdesc. Content type must be multipart/form-data. Will return the XID.
π gethonks
The βgethonksβ action can be used to query for honks. The following parameters are used.
pageβ should be one ofβhomeβorβatmeβ.afterβ only return honks after the specified ID.waitβ if there are no results, wait this many seconds for something to appear.
The result will be returned as json.
β‘ zonkit
The βzonkitβ action began life as a delete function, but has since evolved some other powers as specified by the wherefore parameter. The target of the action is specified by the what parameter and is generally the XID of a honk.
wherefore must be one of the following.
bonkβ share honk with others.unbonkβ undo share.saveβ mark honk as saved.unsaveβ unmark honk as saved.reactβ post an emoji reaction. A custom reaction may be specified withreaction.ackβ mark honk as read.deackβ unmark honk as read.zonkβ delete this honk.zonvoyβ mute this thread. What should identify a convoy.
π₯ gethonkers
Returns a list of current honkers in json format.
πΎ savehonker
Save a new honker, or update an existing one. The following fields are used.
honkeridβ the numeric ID of an existing honker to update.nameβ the preferred short name.urlβ the ActivityPub actor url.combosβ space separated list of combos.notesβ some notes.
The honker numeric ID will be returned for success. To delete, unsub, or sub, include a form value with name and value equal. As in, a form value named delete with the value delete, or unsub=unsub, etc. π«Ά
π¨ sendactivity
Send anything. No limits, no error checking. π
rcptβ an actor to deliver the message to to. May be specified more than once. An inbox may be specified directly by prefixing with%.msgβ the message. It should be a validjsonactivity, but yolo.publicβ set to1to use shared inboxes for delivery.
π§ͺ EXAMPLES
Refer to the sample code in the toys directory.
π SEE ALSO
vim(3)
π source: Debian Β· date/version stamp: $Mdocdate$ Β· manual: HONK(3) β bestie, thanks for reading, now go make the API do something iconic π
π¦ where this page comes from
- nixos 26.05: honk 1.5.2
- Copyright (c) 2019 Ted Unangst
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms