How can I grab a "snapshot" from the Surveillance Station Web API? What I would like to do is grab a snapshot and feed it to a web page.
Not very familiar with how the Web API works for Synology Surveillance Station (I am a newbie at programming in general). I have tried reading through the help. The web API help can be found here. Surveillance Station Web API
When I enter this into a browser I am expecting to get a snapshot JPG back
http://MyNASip:5000/webapi/entry.cgi?camStm=1&version="8"&cameraId=1&api="SYNO.SurveillanceStation.Camera"&preview=true&method="GetSnapshot"
Am I understanding this right?
Instead I get this in the browser
{"error":{"code":105},"success":false}
And I get the following in the /var/log/messages
2018-02-05T13:15:03-06:00 DS215j synoscgi_SYNO.SurveillanceStation.Camera_8_GetSnapshot[15020]: group_is_admin_group_member_by_uid.c:14 SYNOUserGetByUID(4294967295) failed [0x1D00 user_get_by_uid.c:129
Is the an authentication issue?
Page 16 of the API says error 105 is "Insufficient user privilege". Following the workflow shown on page 14 you should be able to accomplish what you want. Try first making a call to the login method (page 21) then requesting the snapshot.
This may help: whenever you see GET /webapi/...
you can change that to http://MyNASip:5000/webapi/...
and send the request using your browser.