Lightweight Typescript API for https://github.com/urento/Hastebin
- Send a Request to the API and Create a new haste
- @param hostname: web address from the api server
- @param content: content that should be displayed in the haste
- @returns response from server as json object
- Get the Content (and other data) from the Haste
- @param hostname: web address from the api server
- @param id: id from the haste
- @returns: response from server as json object
- Add Constructor or something to make functions get rid of setting the hostname every time