@tejashah88 , I'm having problems with the camera snapshot API.
If I use this code to get a videoLink it works,
dashboard.cameras.videoLink(netID, cameraSerial, ts)
.then(data => processPerson(data))
.catch(error => console.log("snaptshot error: "+error));
If I use this code to get a snapshot (what I really want):
dashboard.cameras.snapshot(netID, cameraSerial, ts)
.then(data => processPerson(data))
.catch(error => console.log("snaptshot error: "+error));
I get this error being thrown:
"snaptshot error: TypeError: Cannot convert undefined or null to object"
In both cases both API calls have exactly the same parameters, so I'm pretty sure they are correct. I have also tried removing the "ts" (timestamp) parameter but I still get the same error.