Using Create Event and Bookmark event and also get the recording.

In Progress

Comments

2 comments

  • Avatar
    Sergey Yuldashev

    Hello Tanaya,

    1. Error from server

    In the first example you are using GET request and trying to attach the http body.
    Most likely what's happening is the HTTP client you are using in this case will strip the http body and will send GET request to the specified url. And since there is no "caption", "description" or "source" parameters in it, server's response is pretty legit.

    Possible resolution options - use POST requests if you want to pass parameters in the body OR add the query params to the URL if you have the hard requirement to stick to GET method.

    2. Missing images

    Recording is not enabled at your cameras(license is not spent). Without it server keeps the previews for some time but then drops, which is why you see "No Data". If you want the previews be available, recording must exist, i.e. it camera should be activated with the license, recording should be generated either by the "Recording schedule" or with the "Recording on Camera" action in the Event Rules.

    3. Authorization

    Using the bearer token is the recommended authorization method since VMS 5.0.
    That said, the deprecated(insecure) digest and basic authentication methods could still be used but are disabled by default.
    Please follow this manual page to enable and test against them:
    https://resources.vmsproxy.com/nx_6.0_help/session-and-digest-authentication.html

    Please note that the support for the deprecated methods might be stopped at some point. So again - our recommendation is to build integrations using the recommended approach to ensure end users experience.

    0
    Comment actions Permalink
  • Avatar
    Tanaya Ghosh

    Thanks Sergey Yuldashev it was much helpful,

    I added the license and got the recordings.

    also now I want to create EventRules so that I get bookmarks and it should be visible at Bookmarks log also.

    But while running that API i m getting error.Image atttached below.Do let me know.

    0
    Comment actions Permalink

Please sign in to leave a comment.