0.2.7 • Published 12 months ago
nodehakoapi v0.2.7
node-hako-api
An unofficial lib to retrieve data from ln.hako.vn website, no username or password required. Other methods are not implemented yet. Feel free to contribute.
Table of Contents
Note
This package is not affiliated with or endorsed by Hako or any related parties. I'm still working on this package, so expect more features to come.
Install
npm:
npm install nodehakoapi
Usage
Node
const NHA = require('nodehakoapi');
//test function
(async () => {
//get user info
let userInfo = await NHA.common.User.get("https://ln.hako.vn/thanh-vien/104802");
let projectInfo = await NHA.common.User.get("https://ln.hako.vn/project/10000");
//Auth required function
let user = new NHA.managers.UserManager("username", "password");
let user = await user.login();
//get notification
let notification = await user.getNotifications();
//get unread project
let unreadProject = await user.getUnreadProjects();
})();
Supported Platforms
- Node: v6.x+