API for downloading videos from Kuna Maximus.
All methods need to be Awaited. C#
{
KunaAPI.KunaAPI kunaapi = new KunaAPI.KunaAPI(username, password);
kunaapi.authenticate();
kunaapi.update(); // will update all cameras and their info
// loop thru cameras to get recordings
foreach (var c in camera)
{
var recordings = kapi.getallrecordings(c);
foreach (var recording in recordings)
// get download link
dlink = kunaapi.getdownloadlink(recording);
}
}
VB.Net
Dim kunaapi As New KunaAPI.KunaAPI(username, password)
kunaapi.authenticate
kunaapi.update 'will update all cameras and their info
'loop thru cameras to get recordings
for each c in camera
dim recordings = kapi.getallrecordings(c)
for each recording in recordings
'get download link
dlink = kunaapi.getdownloadlink(recording)
next
next
credit to python developer: marthoc/pykuna