hotpxl / tsinghua-university-network

An interface of Tsinghua University Network for JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

An interface of Tsinghua University Network for JavaScript

License:MIT License


Languages

Language:CoffeeScript 100.0%