Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Urento/Hastebin-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hastebin-API

Lightweight Typescript API for https://github.com/urento/Hastebin

createHaste

  • 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

getHaste

  • 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

Todo

  • Add Constructor or something to make functions get rid of setting the hostname every time