test api
method /
{"code":200,"message":"Welcom API v0.0.2","status":1}
response success: Welcom API v0.0.2method /info
{"code":200,"message":"API v0.0.2","status":1}
response success: API v0.0.2method /status
{"code":200,"message":"Success","status":1}
response success: Successmethod /device/info/:uuid
{"code":200,"message":{"alive":"1","bitrate":"2051","clients":"1","disk_used":"159043806478","height":"1080","rx":"202676609142","tx":"0","width":"1920"},"status":1}
response success: Array
(
[alive] => 1
[bitrate] => 2051
[clients] => 1
[disk_used] => 159043806478
[height] => 1080
[rx] => 202676609142
[tx] => 0
[width] => 1920
)
method /device/server/:uuid
{"code":200,"message":"171.25.232.18","status":1}
response success: 171.25.232.18method /device/status/:uuid
{"code":200,"message":"1","status":1}
response success: 1method /device/url/rtmp/:uuid
{"code":200,"message":"rtmp://171.25.232.18/FheZFgpMtRwMoEH0yT1qG8o5rvjwrz","status":1}
response success: rtmp://171.25.232.18/FheZFgpMtRwMoEH0yT1qG8o5rvjwrzmethod /device/url/hls/:uuid
{"code":200,"message":"http://171.25.232.18:8081/hls/FheZFgpMtRwMoEH0yT1qG8o5rvjwrz/index.m3u8","status":1}
response success: http://171.25.232.18:8081/hls/FheZFgpMtRwMoEH0yT1qG8o5rvjwrz/index.m3u8method /device/url/rtsp/:uuid
{"code":200,"message":"rtsp://171.25.232.18:554/FheZFgpMtRwMoEH0yT1qG8o5rvjwrz","status":1}
response success: rtsp://171.25.232.18:554/FheZFgpMtRwMoEH0yT1qG8o5rvjwrzmethod /device/jpeg/online/:uuid/:name
method /device/thumb/online/:uuid/:size/:name
method /device/jpeg/cache/:uuid/:name
method /device/thumb/cache/:uuid/:size/:name
method /device/nvr/file/mp4/:uuid/:start/:length
{"code":200,"message":"http://171.25.232.18:8081/api/stream/nvr/download/mp4/FheZFgpMtRwMoEH0yT1qG8o5rvjwrz/1480509711/60","status":1}
response success: http://171.25.232.18:8081/api/stream/nvr/download/mp4/FheZFgpMtRwMoEH0yT1qG8o5rvjwrz/1480509711/60method /device/nvr/file/ts/:uuid/:start/:length
{"code":200,"message":"http://171.25.232.18:8081/api/stream/nvr/download/ts/FheZFgpMtRwMoEH0yT1qG8o5rvjwrz/1480509711/60","status":1}
response success: http://171.25.232.18:8081/api/stream/nvr/download/ts/FheZFgpMtRwMoEH0yT1qG8o5rvjwrz/1480509711/60method /device/nvr/hls/:uuid/:start/:length
{"code":200,"message":"http://171.25.232.18:8081/nvr/hls/FheZFgpMtRwMoEH0yT1qG8o5rvjwrz/1480509711/60/index.m3u8","status":1}
response success: http://171.25.232.18:8081/nvr/hls/FheZFgpMtRwMoEH0yT1qG8o5rvjwrz/1480509711/60/index.m3u8method /device/nvr/map/:uuid/:start/:length
{"code":200,"message":"Success","status":1}
response success: Successmethod /device/alarm/map/:uuid/:start/:length
{"code":200,"message":{"status":"-1"},"status":1}
response success: Array
(
[status] => -1
)
method /device/alarm/status/:uuid
{"code":200,"message":"0","status":1}
response success: 0method /device/alarm/average/:uuid
{"code":200,"message":"0.000000","status":1}
response success: 0.000000method /devices/all
{"code":200,"message":{"20_FvZ3oYGWmY7HiwsJAPygB8SFOT5kxa":{"did":"","dvrlimit":10080,"enableaudio":"1","enabledvr":1,"server":"171.25.232.12","status":1,"streamtype":1,"urlmain":"rtsp://admin:123456@171.25.235.18/mpeg4","urlsecond":"","uuid":"20_FvZ3oYGWmY7HiwsJAPygB8SFOT5kxa"},"VLJysnWTWiea9BbFnVhs7sX9IddVmW":{"did":"","dvrlimit":0,"enableaudio":"0","enabledvr":0,"server":"171.25.232.16","status":0,"streamtype":0,"urlmain":"rtsp://admin:123456@171.25.232.12:5511/2ccb599972214556abf50ca49c644ebd","urlsecond":"","uuid":"VLJysnWTWiea9BbFnVhs7sX9IddVmW"}},"status":1}
response success: Array
(
[20_FvZ3oYGWmY7HiwsJAPygB8SFOT5kxa] => Array
(
[did] =>
[dvrlimit] => 10080
[enableaudio] => 1
[enabledvr] => 1
[server] => 171.25.232.12
[status] => 1
[streamtype] => 1
[urlmain] => rtsp://admin:123456@171.25.235.18/mpeg4
[urlsecond] =>
[uuid] => 20_FvZ3oYGWmY7HiwsJAPygB8SFOT5kxa
)
[VLJysnWTWiea9BbFnVhs7sX9IddVmW] => Array
(
[did] =>
[dvrlimit] => 0
[enableaudio] => 0
[enabledvr] => 0
[server] => 171.25.232.16
[status] => 0
[streamtype] => 0
[urlmain] => rtsp://admin:123456@171.25.232.12:5511/2ccb599972214556abf50ca49c644ebd
[urlsecond] =>
[uuid] => VLJysnWTWiea9BbFnVhs7sX9IddVmW
)
)
method /devices/select
{"code":200,"message":{"1PT9L4ntSlLY6hZpoQbrPuBZge20q87":{"did":"","dvrlimit":10080,"enableaudio":"0","enabledvr":1,"server":"171.25.232.18","status":1,"streamtype":1,"urlmain":"rtsp://admin:123456@10.128.18.211/mpeg4","urlsecond":"","uuid":"1PT9L4ntSlLY6hZpoQbrPuBZge20q87"},"5_JrVIeaK4x9k4Kzsc3vfYYqHdFojf3M":{"did":"","dvrlimit":10080,"enableaudio":"0","enabledvr":1,"server":"171.25.232.11","status":1,"streamtype":1,"urlmain":"rtsp://admin:12345678@94.242.52.34:5541/mpeg4","urlsecond":"","uuid":"5_JrVIeaK4x9k4Kzsc3vfYYqHdFojf3M"}},"status":1}
response success: Array
(
[1PT9L4ntSlLY6hZpoQbrPuBZge20q87] => Array
(
[did] =>
[dvrlimit] => 10080
[enableaudio] => 0
[enabledvr] => 1
[server] => 171.25.232.18
[status] => 1
[streamtype] => 1
[urlmain] => rtsp://admin:123456@10.128.18.211/mpeg4
[urlsecond] =>
[uuid] => 1PT9L4ntSlLY6hZpoQbrPuBZge20q87
)
[5_JrVIeaK4x9k4Kzsc3vfYYqHdFojf3M] => Array
(
[did] =>
[dvrlimit] => 10080
[enableaudio] => 0
[enabledvr] => 1
[server] => 171.25.232.11
[status] => 1
[streamtype] => 1
[urlmain] => rtsp://admin:12345678@94.242.52.34:5541/mpeg4
[urlsecond] =>
[uuid] => 5_JrVIeaK4x9k4Kzsc3vfYYqHdFojf3M
)
)
method /devices/add
{"code":200,"message":{"uuid":"81f3d937-203c-4f6d-890b-6021c2b6b9a4"},"status":1}
response success: Array
(
[uuid] => 81f3d937-203c-4f6d-890b-6021c2b6b9a4
)
method /devices/edit
{"code":200,"message":"Success","status":1}
response success: Successmethod /device/reload/:uuid
{"code":200,"message":"Success","status":1}
response success: Successmethod /device/del/:uuid
{"code":200,"message":"Success","status":1}
response success: Success