Versions Compared

Key

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

General request format:

GET http://IP-address:port/web2/secure/archive/{CAM:id}/{DATE}|/?[splitThreshold={splitThreshold}]&[days={days}]

Request parameters:

Parameter

Is required

Description

CAM:idYesCamera ID in the format "TYPE:ID", for example "CAM:1"
DATEYesDate of the start of receiving the archive. All time is interpreted as local time for server.
splitThresholdYes If difference between end of previous record and start of next record less than specified value (in milliseconds), than records will be combined in one. Specify splitTreshold=0. [default: 50] not to combine records.
daysYesNumber of days from the current, for which archive is required. [default: 1]

Example request:

GET http://127.0.0.1:8085/web2/secure/archive/CAM:2/2011-12-30/?[splitThreshold=50]&[days=1]

...

GET http://127.0.0.1:8085/web2/secure/archive/CAM:1/2013-10-18/?days=10 – Get records for 10 days from 18 November 2013.

Example response:

XML:

Code Block
languagexml
<?xml version="1.0" encoding="UTF-16"?>
<days>
    <day>
        <id>2013-11-10T00:00:00-02:00</id>
        <records>
            <from>2013-11-10T18:44:01.579-02:00</from>
            <to>2013-11-10T18:44:09.717-02:00</to>
        </records>
    </day>
    <day>
        <id>2013-11-18T00:00:00-02:00</id>
        <records>
            <from>2013-11-18T18:38:30.252-02:00</from>
            <to>2013-11-18T18:38:56.942-02:00</to>
        </records>
        <records>
            <from>2013-11-18T18:39:08.321-02:00</from>
            <to>2013-11-18T18:39:10.080-02:00</to>
        </records>
    </day>
</days>

...