Node Lutim
This project provide a node api for lutim.
The source code is strongly inspired by node-imgur
Module usage
Installation
npm install lutim
Usage
Requiring the module
var lutim = ;
setApiUrl(url: String)
By default node-lutim url will be https://framapic.org/. You can change it using setApiUrl(url)
.
lutim;
getApiUrl()
Getter for the current api url.
Returns a String
lutim // => 'http://myUrl/'
getServerInfos(): Promise
See https://framagit.org/fiat-tux/hat-softwares/lutim/wikis/API#get-informations-about-the-server
Returns a Promise
lutim
uploadImage(filePath: String, deleteDay?: number, firstView?: number, keepExif?: number, crypt?: number): Promise
See https://framagit.org/fiat-tux/hat-softwares/lutim/wikis/API#add-images
Returns a Promise
lutim lutim
deleteImage(realShort: String, token: String): Promise
See https://framagit.org/fiat-tux/hat-softwares/lutim/wikis/API#delete-images
Returns a Promise
lutim
modifyImage(realShort: String, token: String, deleteDay: number, firstView?: number): Promise
See https://framagit.org/fiat-tux/hat-softwares/lutim/wikis/API#modify-images
Returns a Promise
lutim lutim
getImage(short: String): Promise
See https://framagit.org/fiat-tux/hat-softwares/lutim/wikis/API#get-images
Returns a Promise
lutim
getImageInfos(real_short: String): Promise
See https://framagit.org/fiat-tux/hat-softwares/lutim/wikis/API#get-informations-about-an-image
Returns a Promise
lutim
getImageCountAndStatus(short: String, token: String): Promise
See https://framagit.org/fiat-tux/hat-softwares/lutim/wikis/API#get-counter-and-status-of-image
Returns a Promise
lutim
Credit
The code is inspired by node-imgur
Made for lutim