Sensu.tips API library.
npm install sensu.js
const sensu = require("sensu.js");
const sc = new sensu.Client("APIKEY");
sc.post(["balance","zny"],"z", (err, res, body) => {
console.log(JSON.parse(body));
});
sc.post(sc.ssplit("balance zny"), "z", (err, res, body) => {
console.log(JSON.parse(body));
});
sc.post(sc.ssplit("balance znyt"), "z", (err, res, body) => {
if(res.statusCode !== 200) {
console.log("Web Err!");
}else {
console.log(JSON.parse(body));
}
});
{
"status": "SUCCESS",
"currency_name": "BitZeny",
"balance": "0.00000000",
"currency_code": "ZNY",
"message": "あなたの BitZeny の残高は 0.00000000 ZNY です。"
}