Go to documentation repository
GET http://IP-address:port/web2/secure/archive/{CAM:id}/{DATE}/?[splitThreshold={splitThreshold}]&[days={days}]
Parameter | Is required | Description |
---|---|---|
CAM:id | Yes | Camera ID in the format "TYPE:ID", for example "CAM:1" |
DATE | Yes | Date of the start of receiving the archive. All time is interpreted as local time for server |
splitThreshold | Yes | 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] |
days | Yes | Number of days from the current, for which archive is required. [default: 1] |
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-11-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-11-18/?days=10 – Get records for 10 days from 18 November 2013.
XML:
<?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>
JSON:
[ { "id" : "2013-11-10T00:00:00.000-02:00", "records" : [ { "from" : "2013-11-10T18:44:01.579-02:00", "to" : "2013-11-10T18:44:09.717-02:00" } ] }, { "id" : "2013-11-18T00:00:00.000-02:00", "records" : [ { "from" : "2013-11-18T18:38:30.252-02:00", "to" : "2013-11-18T18:38:56.942-02:00" }, { "from" : "2013-11-18T18:39:08.321-02:00", "to" : "2013-11-18T18:39:10.080-02:00" } ] } ]
Getting records for a month (shows days of September at which there are records):
GET http://127.0.0.1:8085/web2/secure/archive/CAM:2/2011-09/
XML:
<?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>
JSON:
[ { "id" : "2011-09-01T00:00:00-0500", "records" : [ ] }, { "id" : "2011-09-03T00:00:00-0500", "records" : [ ] }, { "id" : "2011-09-01T00:00:00-0500", "records" : [ ] } ]
If there are no records, the following will be received:
XML:
[<days/> JSON: []