nodehakoapi

0.2.7 • Public • Published

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.

NPM version Coverage Status npm npm npm

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+

License

MIT © Nekov5

Readme

Keywords

none

Package Sidebar

Install

npm i nodehakoapi

Weekly Downloads

1

Version

0.2.7

License

ISC

Unpacked Size

36.8 kB

Total Files

14

Last publish

Collaborators

  • nekov6