Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Getting list of records  - "arc.intervals"

GET

http://example.com:[port]/web2/secure/video/action.do?version=4.9.0.0&sessionid=29101F1&video_in=CAM:5&command=arc.intervals&time_from=2013-03-20T00:00:00.000+04:00&time_to=2013-03-22T23:59:59.999+04:00&max_count=100&split_threshold=10399&login=XXX&password=YYY

Required parameters:

command=arc.intervals – command to receive list of records

...

split_threshold – time for combining several intervals (in seconds). Intervals, distance between which will be less than specified value, will be combined in one.

 

format – if absent, the response is in XML; if set to json, the response is JSON.


Example XML responseIn return XML will be received:

 

<?xml version="1.0" encoding="UTF-8"?>

<records count="1" complete="YES" sort="INCREASE">

    <record>

        <from>2011-09-01T00:00:00-05:00</from>

        <to>2011-09-01T00:00:35-05:00</to>

    </record>

    <record>

        <from>2011-09-01T00:00:35-05:00</from>

        <to>2011-09-01T00:01:10-05:00</to>

    </record>

</records>

 Example JSON response:

{ 'count' : 1,
  'complete' : 'YES',
  'sort' : 'INCREASE',
  'cam' : '1',
  'records' : [ {
     'from' : '2019-01-22T12:41:10.144+03:00',
    'to' : '2019-01-23T08:28:47.346+03:00'
  }]
}

Getting one frame from archive - "arc.frame"

...