Cadastrar Biometria
O comando abaixo permite atribuir uma ou mais biometrias digitais a um usuário. Para cada biometria cadastrada, é necessário informar o ID do usuário e a hash biometrica. O comando retorna um texto com o status da operação.
ℹ️
Obs: Limite de 3 biometrias por usuário. Cadastro máximo de 10 biometrias por chamada.
Requisição - POST
http://192.168.1.201/cgi-bin/AccessFingerprint.cgi?action=insertMulti
Body - application/json
{
"vecPackets": [
"xSRoAHeH0nrvx6mGFoojJeg12IJphws+AEvHRGGG08kIDcfGGorEGuB6CsGXiyxV73nZQRmKpH3oQAmCV4dcfoBXu0lUhdyR4EXYw5SLDS3neBtCLof9EdGbjeJMha0VyIYow46H5iX4vnrDiIpWMfh+GsUJiHNJ7zAnxouJ+0oIAbgDdogbeRgLmEkJiBuZ7i5Ii9SE270HQBfAYYTD6t9B14EViDxd62QsEZaJXLoPeZsBU4UsvdiCBkMlhl2tK5WNHIyG1hL5/v0KiIl2Lfi+KoMTjBNa+EH6QYyLu4UP/gmBiYvNzfh+LARnhaICB//KwxSJylr/NfqD2oRaXvg+HALchRqB+DgowVmDxKnnwfnCz4Qtwfi/ygPYhX4e3/76RQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACVvRW9UgCEk1lIlJSZTb1c2omRFWiEjYTclYi9USGQjQzQlERQoiUL1dUliFVKDSHhXJvFaaVmnAWOtQRV4Jv+fEjJXAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdaHAnEzSHxJUAFNPesjkbNJDNgmAWJRTHcbpkAmW3gnFsBCM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gsMRcxXsoHBhMjKNgaFERAm2gMtuVHZ0kY9kIiengS8iMTGnkbtXFUTMkI9kETKWkMFIUhLksGtyQXFGkOAaFEGzcHBAISYGgIBEGGMGoElSS9W61rxMuELhwHFrEAZgoCUqKOp60EVaIdXY0UVVEdKe0ONaMgng0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsKCAUQDAMEBgIPBw4BDRgREhUZFxoAAAAAAAAAANq1"
],
"AccessFingerprints": [
{
"UserID": "5",
"FingerprintPacket": {
"Length": 810,
"Count": 2,
"DuressIndex": 1
}
}
]
}
param | type | description |
---|---|---|
UserID * | Number | ID do Usuário, exemplo: 16 . |
Length * | Number | Tamanho do Hash, Padrão 810 |
Count * | Number | Quantidade de Biometrias |
DuressIndex * | Number | Valor Index da Biometria de Coação |
ℹ️
Permitido no máximo 10 biometrias por requisição.
Exemplo de Retorno - text/plain
OK
Exemplos
import requests
device_ip = '10.1.35.144'
username = 'admin'
password = 'acesso1234'
url = "http://{}/cgi-bin/AccessFingerprint.cgi?action=insertMulti".format(
str(device_ip),
)
digest_auth = requests.auth.HTTPDigestAuth(username, password)
rval = requests.get(url, auth=digest_auth, stream=True, timeout=20, verify=False)
print(rval.text)