1.1.1 • Published 9 years ago

tsinghua-university-network v1.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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.