Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 422 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 422 Bytes

ruishi

睿视门禁API的封装

使用方法

from ruishi import Ruishi
from ruishi.models import UserCreate

user = Ruishi(UserCreate(username='yourusername', password='yourpassword'))
rooms = user.get_room_list()
print([room.dict() for room in rooms])
doors = user.get_device_list([room.nodeUuid.hex for room in rooms])
print(print([door.dict() for door in doors]))
print(user.open_door('dooruuid'))