Versions Compared

Key

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

...

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 not to combine records. [default: 50]
not to combine records.
daysYesNumber of days from the current, for which archive is required. [default: 1]

...

Request example:

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-1011-18/?splitTreshold=2000 – Get records for 18 November 2013 and combine all records, interval between which less than 2000 milliseconds.

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

...

Response example:

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>

...

GET http://127.0.0.1:8085/web2/secure/archive/CAM:2/2011-1209/

XML:

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<days>
    <day>
        <id>2011-09-02T00:00:00-05:00</id>
    </day>
    <day>
        <id>2011-09-03T00:00:00-05:00</id>
    </day>
    <day>
        <id>2011-09-05T00:00:00-05:00</id>
    </day>
</days>

...