1.0.2 • Published 5 years ago
wispkoe-api v1.0.2
wispkoe api
api for wispkoe, a really neat little bbs. it exposes two functions:
getPosts([n])gets the latestnposts, or ifnis unspecified, all of them. new posts will come first. the result is an array of objects with the following keys:title: the post titleusername: the author of the postcontent: the content
addPost(title, username, content)adds a post, with the given title, username, and content.
both of these functions are asynchronous, and return promises.