Files
Py-SPW/examples/check_access.py
Teleport 6b771f8925 Upload 1.5.0 version
Upload docs
2023-05-08 21:43:58 +03:00

15 lines
372 B
Python

import pyspw
# Init library
api = pyspw.SpApi(card_id='card_id',
card_token='card_token')
# Check access to server
print(api.check_access('287598524017803264')) # True
print(api.check_access('289341856083607552')) # False
# Check more than one access
print(api.check_accesses(['403987036219899908', '558667431187447809'], delay=1)) # False, True