I’m having some trouble getting logs for a lock. I have tested on https://api.nuki.io/#!/SmartlockLog/get_0 as well as manual CURL request. I have a suspicion that I am using the wrong values for the authId, but I am unable to find any values that do work.
I have tried the following ways (substituting the necessary values):
(URL = 'https://api.nuki.io/smartlock -> had to replace with URL because I can only post 2 links…)
curl -X GET --header ‘Accept: application/json’ ‘URL/SMARTLOCK_ID/log?authId=ACCESS_TOKEN&limit=20’
curl -X GET --header ‘Accept: application/json’ URL/SMARTLOCK_ID/log?authId=AUTH_ID&limit=20’
curl -X GET --header ‘Accept: application/json’ --header ‘Authorization: Bearer ACCESS_TOKEN’ ‘URL/SMARTLOCK_ID/log’
ACCESS_TOKEN = auth bearer
AUTH_ID = authId pulled from URL/smartlock
I am pretty sure I am just using the wrong values at some point, but am unable to find anything regarding this.
Any help will be much appreciated. Thanks.