Skip to content

yzslab/SmartCCDGUTPHPClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Smart CCDGUT PHP Client

Requirements

PHP >= 7.0

curl

json

xml

Usage

Available commands

        login [USERNAME] [PASSWORD]             Login to Smart CCDGUT and save token.
        logout USERNAME                 Logout.

        electric USERNAME               Query electric usage details.
        attendance USERNAME             Query attendance details.
        extraCredit USERNAME            Query extraCredit details.
        
        ccdgutAutoAuth USERNAME         CCDGUT Network authenticate, without manual IP input, APP login is requried.
        ccdgutAuth USERNAME IP          CCDGUT Network authenticate, APP login is not required.

Login first

./SmartCCDGUT login [USERNAME] [PASSWORD]

Logout

./SmartCCDGUT logout

CCDGUT Network authenticate

./SmartCCDGUT ccdgutAutoAuth USERNAME # e.g.: ./SmartCCDGUT ccdgutAutoAuth 201535000000
# or manually specific IP address
./SmartCCDGUT ccdgutAuth USERNAME IP # e.g.: ./SmartCCDGUT ccdgutAuth 201535000000 10.20.0.0

Query electric usage details

./SmartCCDGUT USERNAME [area] [room]

About

Smart CCDGUT PHP Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages