tsinghua-university-network

1.1.1 • Public • Published

Tsinghua University Network

npm version

NPM

Introduction

An interface of Tsinghua University Network for JavaScript

Installation

Simple as npm install tsinghua-university-network!

API

Login

login(username, password, callback)

callback will be called as callback(error, dataUsage), where dataUsage represents gigabytes used so far this month.

List connected clients

getActiveConnections(username, password, callback)

callback will be called as callback(error, listOfClients), where listOfClients is of style [{ip: ..., checksum: ...}, ...].

Logout

logout(username, password, ip, checksum, callback)

callback will be calle das callback(error). Yes, ip and checksum would be best chained with getActiveConnections.

Readme

Keywords

none

Package Sidebar

Install

npm i tsinghua-university-network

Weekly Downloads

0

Version

1.1.1

License

MIT

Last publish

Collaborators

  • hotpxl