Добро пожаловать!

Новая версия api сервиса IPEYE предоставляет быстрый и простой доступ ко всем возможностям сервиса IPEYE в любое время на любых платформах.




/

Получение информации о состоянии сервера и версии ПО (/)
Метод получает информацию о состоянии сервера и версию ПО.

URL:/info
Метод:GET
Авторизация:нет
Ожидаемые параметры:нет
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
  echo $reply;
}else{
  echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
    "code": 200,
    "message": "Welcom API v0.0.2",
    "status": 1
  }



/info

Получение информации о версии ПО сервера (/info)
Метод получает информацию о версии ПО сервера.

URL:/info
Метод:GET
Авторизация:нет
Ожидаемые параметры:нет
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/info", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
    "code": 200,
    "message": "API v0.0.2",
    "status": 1
  }



/status

Получение информации о доступности сервера (/status)
Метод получает информацию о стостоянии сервервера используется как ping для проверки работает ли сервер.

URL:/status
Метод:GET
Авторизация:нет
Ожидаемые параметры:нет
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/status", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
    "code": 200,
    "message": "Success",
    "status": 1
  }



/device/info/:uuid

Получение информации о потоке (/device/info/:uuid)
Метод выводит информацию о потоке.

URL:/device/info
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/info/$uuid", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
  echo $reply;
}else{
  echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
    "code": 200,
    "message": {
      "alive": "1",
      "bitrate": "2046",
      "clients": "0",
      "disk_used": "158876893812",
      "height": "1080",
      "rx": "199744452060",
      "tx": "0",
      "width": "1920"
    },
    "status": 1
  }



/device/server/:uuid

Получение информации о сервере размещения потока (/device/server/:uuid)
Метод получает информацию о том, на каком сервере размещается поток.

URL:/device/server/
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/server/$uuid", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
    "code": 200,
    "message": "171.25.232.18",
    "status": 1
  }



/device/status/:uuid

Получение информации о статусе потока (/device/status/:uuid)
Метод получает информацию о статусе потока (1 - online, 0 - offline).

URL:/device/status
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/status/$uuid", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
    "code": 200,
    "message": "1",
    "status": 1
  }



/device/url/rtmp/:uuid

Получение rtmp URL потока (/device/url/rtmp/:uuid)
Метод получает URL-ссылку на rtmp поток (используется для FLASH)

URL:/device/url/rtmp/
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/url/rtmp/$uuid", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
    "code": 200,
    "message": "rtmp://171.25.232.18/FheZFgpMtRwMoEH0yT1qG8o5rvjwrz",
    "status": 1
  }



/device/url/hls/:uuid

Получение hls URL потока (/device/url/hls/:uuid)
Метод получает URL-ссылку на hls поток (используется для тега video, воспроизводится в IOS, ANDROID)

URL:/device/url/hls/
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/url/hls/$uuid", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
    "code": 200,
    "message": "http://171.25.232.18:8081/hls/FheZFgpMtRwMoEH0yT1qG8o5rvjwrz/index.m3u8",
    "status": 1
  }



/device/url/rtsp/:uuid

Получение rtsp URL потока (/device/url/rtsp/:uuid)
Метод получает URL-ссылку на rtsp поток (используется для мобильных приложений, проигрывается в VLC)

URL:/device/url/rtsp
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/url/rtsp/$uuid", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
    "code": 200,
    "message": "rtsp://171.25.232.18:554/FheZFgpMtRwMoEH0yT1qG8o5rvjwrz",
    "status": 1
  }



/device/jpeg/online/:uuid/:name

Получение скриншота потока в реальном времени (/device/jpeg/online/:uuid/:name)
Метод получает скриншот потока в реальном времени (в текущий момент).

URL:/device/jpeg/online
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID, name
Формат ответа:RAW JPEG
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/jpeg/online/$uuid/$name", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
  echo "";
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
raw jpeg



/device/thumb/online/:uuid/:size/:name

Получение скриншота потока в реальном времени с возможностью масштабирования(/device/thumb/online/:uuid/:size/:name)
Метод получает скриншот потока в реальном времени (в текущий момент) с возможностью масштабирования (size - ширина в пикселях, name - произвольное имя).

URL:/device/thumb/online
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID, size, name
Формат ответа:RAW JPEG
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/thumb/online/$uuid/$size/$name", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo "";
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
RAW JPEG



/device/jpeg/cache/:uuid/:name

Получение скриншота потока из кэша (/device/jpeg/cache/:uuid/:name)
Метод получает скриншот потока из кэша (метод работает быстрее, чем при получении скриншота в реальном времени).

URL:/device/jpeg/cache/
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID, name
Формат ответа:RAW JPEG
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/jpeg/cache/$uuid/$name", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo "";
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
raw jpeg



/device/thumb/cache/:uuid/:size/:name

Получение скриншота потока из кэша с возможностью масштабирования (/device/thumb/cache/:uuid/:size/:name)
Метод получает скриншот потока из кэша с возможностью масштабирования (size - ширина в пикселях, name - произвольное имя).

URL:/device/thumb/cache
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID, size, name
Формат ответа:RAW JPEG
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/thumb/cache/$uuid/$size/$name", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo "";
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
raw jpeg



/device/nvr/file/mp4/:uuid/:start/:length

Получение ссылки на скачивание файла архива в формате mp4 (/device/nvr/file/mp4/:uuid/:start/:length)
Метод получает ссылку на скачивание файла архива в формате mp4 (start - начало интервала в формате UNIX, length - длина интервала в формате UNIX).

URL:/device/nvr/file/mp4
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID, start, length
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/nvr/file/mp4/$uuid/$start/$length", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
    "code": 200,
    "message": "http://171.25.232.18:8081/api/stream/nvr/download/mp4/FheZFgpMtRwMoEH0yT1qG8o5rvjwrz/1480498463/120",
    "status": 1
  }



/device/nvr/file/ts/:uuid/:start/:length

Получение ссылки на скачивание файла архива в формате ts (/device/nvr/file/ts/:uuid/:start/:length)
Метод получает ссылку на скачивание файла архива в формате ts (start - начало интервала в формате UNIX, length - длина интервала в формате UNIX).

URL:/device/nvr/file/ts
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID, start, length
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/nvr/file/ts/$uuid/$start/$length", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
    "code": 200,
    "message": "http://171.25.232.18:8081/api/stream/nvr/download/ts/FheZFgpMtRwMoEH0yT1qG8o5rvjwrz/1480498463/120",
    "status": 1
  }



/device/nvr/hls/:uuid/:start/:length

Получение плейлиста для проигрывания файла архива в формате hls (/device/nvr/hls/:uuid/:start/:length)
Метод получает плейлист для проигрывания файла архива в формате hls (start - начало интервала в формате UNIX, length - длина интервала в формате UNIX).

URL:/device/nvr/hls
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID, start, length
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/nvr/hls/$uuid/$start/$length", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
    "code": 200,
    "message": "http://171.25.232.18:8081/nvr/hls/FheZFgpMtRwMoEH0yT1qG8o5rvjwrz/1480498463/120/index.m3u8",
    "status": 1
  }



/device/nvr/map/:uuid/:start/:length

Получение карты архива (/device/nvr/map/:uuid/:start/:length)
Метод получает карту архива потока: когда производилась запись, а когда нет (start - начало интервала в формате UNIX, length - длина интервала в формате UNIX).

URL:/device/nvr/map
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID, start, length
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/nvr/map/$uuid/$start/$length", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
-



/device/alarm/status/:uuid

Получение текущего статуса тревоги (/device/alarm/status/:uuid)
Метод получает текущий статус тревоги (1 - активна, 0 - неактивна).

URL:/device/alarm/status
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/alarm/status/$uuid", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
    "code": 200,
    "message": "0",
    "status": 1
  }



/device/alarm/average/:uuid

Получение текущего уровня тревоги (/device/alarm/average/:uuid)
Метод получает текущий уровень тревоги (необходимо для настройки датчика тревоги).

URL:/device/alarm/average
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/alarm/average/$uuid", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
    "code": 200,
    "message": "10.486491",
    "status": 1
  }



/device/alarm/map/:uuid/:start/:length

Получение карты тревог потока (/device/alarm/map/:uuid/:start/:length)
Метод получает карту тревог потока в выбранном интервале времени (start - начало интервала в формате UNIX, length - длительность интевала в формате UNIX).

URL:/device/alarm/map
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID, start, length
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/alarm/map/$uuid/$start/$length", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
-



/device/traffic/map/:uuid/:start/:end

Получение карты трафика потока (/device/traffic/map/:uuid/:start/:end)
Метод получает карту трафика потока в выбранном интервале времени (start - начало в формате UNIX, end - конец в формате UNIX).

URL:/device/traffic/map
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID, start, end
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/traffic/map/$uuid/$start/$length", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
{"code":200,"message":{"1481021996":{"s":"487"},"1481022002":{"s":"508"},"1481022008":{"s":"516"},"1481022014":{"s":"507"},"1481022020":{"s":"502"},"1481022026":{"s":"516"},"1481022032":{"s":"499"},"1481022038":{"s":"512"},"1481022044":{"s":"507"},"1481022050":{"s":"492"},"1481022056":{"s":"498"},"1481022062":{"s":"521"},"1481022068":{"s":"513"},"1481022074":{"s":"499"},"1481022080":{"s":"512"},"1481022086":{"s":"496"},"1481022092":{"s":"520"},"1481022098":{"s":"504"},"1481022104":{"s":"507"},"1481022110":{"s":"499"},"1481022116":{"s":"526"},"1481022122":{"s":"513"},"1481022128":{"s":"506"},"1481022134":{"s":"486"},"1481022140":{"s":"484"},"1481022190":{"s":"504"},"1481022196":{"s":"499"},"1481022202":{"s":"468"},"1481022208":{"s":"502"},"1481022214":{"s":"505"},"1481022220":{"s":"501"},"1481022226":{"s":"491"},"1481022232":{"s":"496"},"1481022238":{"s":"505"},"1481022244":{"s":"469"},"1481022249":{"s":"407"},"1481022255":{"s":"478"},"1481022261":{"s":"532"},"1481022268":{"s":"607"},"1481022274":{"s":"505"},"1481022280":{"s":"508"},"1481022286":{"s":"505"},"1481022292":{"s":"495"},"1481022298":{"s":"516"},"1481022304":{"s":"500"},"1481022310":{"s":"489"},"1481022316":{"s":"505"},"1481022322":{"s":"506"},"1481022328":{"s":"498"},"1481022334":{"s":"491"},"1481022340":{"s":"509"},"1481022346":{"s":"498"},"1481022352":{"s":"518"},"1481022358":{"s":"502"},"1481022364":{"s":"529"},"1481022370":{"s":"484"},"1481022376":{"s":"433"},"1481022382":{"s":"423"},"1481022388":{"s":"412"},"1481022394":{"s":"518"},"1481022400":{"s":"510"},"1481022406":{"s":"514"},"1481022412":{"s":"508"},"1481022418":{"s":"499"},"1481022424":{"s":"509"},"1481022430":{"s":"510"},"1481022436":{"s":"509"},"1481022442":{"s":"495"},"1481022448":{"s":"522"},"1481022454":{"s":"494"},"1481022460":{"s":"517"},"1481022466":{"s":"488"},"1481022472":{"s":"502"},"1481022478":{"s":"512"},"1481022484":{"s":"501"},"1481022490":{"s":"477"},"1481022496":{"s":"519"},"1481022502":{"s":"514"},"1481022508":{"s":"500"},"1481022514":{"s":"508"},"1481022520":{"s":"505"},"1481022526":{"s":"493"},"1481022532":{"s":"515"},"1481022538":{"s":"489"},"1481022544":{"s":"450"},"1481022550":{"s":"510"},"1481022556":{"s":"495"},"1481022562":{"s":"510"},"1481022568":{"s":"488"},"1481022574":{"s":"536"},"1481022580":{"s":"496"},"1481022586":{"s":"525"},"1481022592":{"s":"491"},"1481022597":{"s":"510"},"1481022604":{"s":"493"},"1481022610":{"s":"485"},"1481022616":{"s":"521"},"1481022622":{"s":"498"},"1481022628":{"s":"492"},"1481022633":{"s":"509"},"1481022640":{"s":"499"},"1481022645":{"s":"506"},"1481022651":{"s":"531"},"1481022658":{"s":"499"},"1481022663":{"s":"503"},"1481022670":{"s":"498"},"1481022676":{"s":"511"},"1481022682":{"s":"516"},"1481022687":{"s":"513"},"1481022693":{"s":"511"},"1481022699":{"s":"510"},"1481022705":{"s":"496"},"1481022712":{"s":"496"},"1481022717":{"s":"516"},"1481022723":{"s":"497"},"1481022729":{"s":"514"},"1481022735":{"s":"504"},"1481022741":{"s":"440"},"1481022747":{"s":"502"},"1481022753":{"s":"487"},"1481022769":{"s":"485"},"1481022775":{"s":"510"},"1481022781":{"s":"506"},"1481022787":{"s":"512"},"1481022793":{"s":"508"},"1481022799":{"s":"506"},"1481022805":{"s":"523"},"1481022811":{"s":"483"},"1481022817":{"s":"509"},"1481022823":{"s":"510"},"1481022829":{"s":"524"},"1481022835":{"s":"498"},"1481022841":{"s":"501"},"1481022847":{"s":"494"},"1481022853":{"s":"393"},"1481022859":{"s":"407"},"1481022865":{"s":"379"},"1481022871":{"s":"414"},"1481022877":{"s":"400"},"1481022883":{"s":"441"},"1481022889":{"s":"490"},"1481022895":{"s":"394"},"1481022901":{"s":"494"},"1481022907":{"s":"513"},"1481022913":{"s":"509"},"1481022919":{"s":"501"},"1481022925":{"s":"512"},"1481022931":{"s":"505"},"1481022937":{"s":"505"},"1481022943":{"s":"515"},"1481022949":{"s":"502"},"1481022955":{"s":"512"},"1481022961":{"s":"510"},"1481022967":{"s":"509"},"1481022984":{"s":"496"},"1481022990":{"s":"511"},"1481022996":{"s":"502"},"1481023002":{"s":"514"},"1481023008":{"s":"500"},"1481023014":{"s":"492"},"1481023031":{"s":"494"},"1481023037":{"s":"519"},"1481023043":{"s":"498"},"1481023057":{"s":"497"},"1481023063":{"s":"512"},"1481023069":{"s":"513"},"1481023075":{"s":"508"},"1481023081":{"s":"511"},"1481023087":{"s":"508"},"1481023093":{"s":"517"},"1481023099":{"s":"506"},"1481023105":{"s":"508"},"1481023111":{"s":"501"},"1481023117":{"s":"512"},"1481023123":{"s":"457"},"1481023129":{"s":"409"},"1481023135":{"s":"491"},"1481023141":{"s":"514"},"1481023147":{"s":"509"},"1481023153":{"s":"496"},"1481023159":{"s":"525"},"1481023165":{"s":"506"},"1481023171":{"s":"482"},"1481023204":{"s":"462"},"1481023210":{"s":"444"},"1481023216":{"s":"529"},"1481023222":{"s":"486"},"1481023228":{"s":"506"},"1481023234":{"s":"505"},"1481023240":{"s":"508"},"1481023246":{"s":"505"},"1481023272":{"s":"486"},"1481023278":{"s":"521"},"1481023284":{"s":"516"},"1481023290":{"s":"521"},"1481023296":{"s":"497"},"1481023302":{"s":"507"},"1481023308":{"s":"502"},"1481023314":{"s":"498"},"1481023320":{"s":"522"},"1481023326":{"s":"524"},"1481023332":{"s":"494"},"1481023338":{"s":"513"},"1481023344":{"s":"507"},"1481023350":{"s":"501"},"1481023356":{"s":"506"},"1481023362":{"s":"511"},"1481023368":{"s":"520"},"1481023374":{"s":"501"},"1481023380":{"s":"505"},"1481023386":{"s":"501"},"1481023392":{"s":"501"},"1481023398":{"s":"512"},"1481023404":{"s":"522"},"1481023410":{"s":"502"},"1481023416":{"s":"516"},"1481023422":{"s":"499"},"1481023428":{"s":"522"},"1481023434":{"s":"520"},"1481023440":{"s":"449"},"1481023446":{"s":"440"},"1481023452":{"s":"501"},"1481023458":{"s":"502"},"1481023464":{"s":"413"},"1481023470":{"s":"490"},"1481023476":{"s":"498"},"1481023482":{"s":"505"},"1481023488":{"s":"510"},"1481023494":{"s":"525"},"1481023500":{"s":"493"},"1481023506":{"s":"497"},"1481023512":{"s":"474"},"1481023518":{"s":"513"},"1481023524":{"s":"479"},"1481023530":{"s":"486"},"1481023536":{"s":"508"},"1481023542":{"s":"515"},"1481023548":{"s":"498"},"1481023554":{"s":"499"},"1481023560":{"s":"478"},"1481023566":{"s":"502"},"1481023572":{"s":"501"},"1481023578":{"s":"511"},"1481023584":{"s":"509"},"1481023590":{"s":"459"},"1481023596":{"s":"511"},"1481023602":{"s":"480"},"1481023608":{"s":"507"},"1481023614":{"s":"495"},"1481023620":{"s":"484"},"1481023626":{"s":"495"},"1481023632":{"s":"518"},"1481023638":{"s":"501"},"1481023644":{"s":"500"},"1481023650":{"s":"522"},"1481023656":{"s":"517"},"1481023662":{"s":"502"},"1481023668":{"s":"509"},"1481023674":{"s":"480"},"1481023680":{"s":"491"},"1481023686":{"s":"497"},"1481023692":{"s":"529"},"1481023698":{"s":"504"},"1481023704":{"s":"511"},"1481023710":{"s":"503"},"1481023716":{"s":"510"},"1481023722":{"s":"508"},"1481023728":{"s":"499"},"1481023734":{"s":"517"},"1481023740":{"s":"505"},"1481023746":{"s":"500"},"1481023752":{"s":"509"},"1481023758":{"s":"520"},"1481023764":{"s":"507"},"1481023770":{"s":"496"},"1481023776":{"s":"506"},"1481023782":{"s":"511"},"1481023788":{"s":"519"},"1481023794":{"s":"512"},"1481023800":{"s":"515"},"1481023806":{"s":"488"},"1481023812":{"s":"517"},"1481023818":{"s":"504"},"1481023824":{"s":"513"},"1481023830":{"s":"505"},"1481023836":{"s":"520"},"1481023842":{"s":"503"},"1481023848":{"s":"513"},"1481023854":{"s":"505"},"1481023860":{"s":"507"},"1481023866":{"s":"519"},"1481023872":{"s":"514"},"1481023878":{"s":"511"},"1481023884":{"s":"518"},"1481023890":{"s":"504"},"1481023896":{"s":"522"},"1481023902":{"s":"491"},"1481023908":{"s":"501"},"1481023914":{"s":"510"},"1481023920":{"s":"518"},"1481023927":{"s":"409"},"1481023934":{"s":"605"},"1481023940":{"s":"516"},"1481023946":{"s":"518"},"1481023952":{"s":"504"},"1481023958":{"s":"509"},"1481023964":{"s":"510"},"1481023970":{"s":"503"},"1481023976":{"s":"509"},"1481023982":{"s":"506"},"1481023988":{"s":"506"},"1481023994":{"s":"525"},"1481024000":{"s":"478"},"1481024006":{"s":"533"},"1481024012":{"s":"503"},"1481024018":{"s":"500"},"1481024024":{"s":"514"},"1481024030":{"s":"514"},"1481024036":{"s":"503"},"1481024042":{"s":"504"},"1481024048":{"s":"504"},"1481024054":{"s":"502"},"1481024060":{"s":"492"},"1481024066":{"s":"504"},"1481024072":{"s":"511"},"1481024078":{"s":"498"},"1481024084":{"s":"507"},"1481024090":{"s":"525"},"1481024096":{"s":"482"},"1481024102":{"s":"486"},"1481024108":{"s":"460"},"1481024114":{"s":"384"},"1481024120":{"s":"530"},"1481024126":{"s":"508"},"1481024132":{"s":"487"},"1481024138":{"s":"513"},"1481024144":{"s":"485"},"1481024150":{"s":"511"},"1481024156":{"s":"510"},"1481024162":{"s":"489"},"1481024168":{"s":"513"},"1481024174":{"s":"476"},"1481024180":{"s":"500"},"1481024186":{"s":"496"},"1481024192":{"s":"464"},"1481024198":{"s":"487"},"1481024204":{"s":"426"},"1481024210":{"s":"408"},"1481024216":{"s":"487"},"1481024222":{"s":"502"},"1481024228":{"s":"500"},"1481024234":{"s":"454"},"1481024240":{"s":"522"},"1481024246":{"s":"466"},"1481024252":{"s":"509"},"1481024258":{"s":"482"},"1481024264":{"s":"503"},"1481024270":{"s":"507"},"1481024276":{"s":"507"},"1481024282":{"s":"503"},"1481024288":{"s":"512"},"1481024294":{"s":"519"},"1481024300":{"s":"504"},"1481024306":{"s":"492"},"1481024311":{"s":"375"},"1481024318":{"s":"628"},"1481024324":{"s":"510"},"1481024330":{"s":"502"},"1481024336":{"s":"492"},"1481024342":{"s":"517"},"1481024348":{"s":"509"},"1481024354":{"s":"504"},"1481024360":{"s":"509"},"1481024366":{"s":"488"},"1481024371":{"s":"519"},"1481024377":{"s":"508"},"1481024384":{"s":"509"},"1481024389":{"s":"514"},"1481024396":{"s":"504"},"1481024402":{"s":"519"},"1481024408":{"s":"461"},"1481024413":{"s":"538"},"1481024420":{"s":"491"},"1481024426":{"s":"488"},"1481024432":{"s":"482"},"1481024438":{"s":"496"},"1481024443":{"s":"506"},"1481024450":{"s":"489"},"1481024455":{"s":"512"},"1481024461":{"s":"509"},"1481024468":{"s":"490"},"1481024474":{"s":"531"},"1481024479":{"s":"519"},"1481024486":{"s":"513"},"1481024491":{"s":"512"},"1481024497":{"s":"508"},"1481024503":{"s":"511"},"1481024509":{"s":"504"},"1481024515":{"s":"448"},"1481024521":{"s":"513"},"1481024528":{"s":"502"},"1481024533":{"s":"517"},"1481024539":{"s":"511"},"1481024545":{"s":"515"},"1481024551":{"s":"505"},"1481024557":{"s":"502"},"1481024563":{"s":"520"},"1481024569":{"s":"489"},"1481024576":{"s":"479"},"1481024581":{"s":"527"},"1481024588":{"s":"509"},"1481024593":{"s":"520"},"1481024599":{"s":"506"},"1481024605":{"s":"478"},"1481024611":{"s":"419"},"1481024618":{"s":"474"},"1481024623":{"s":"542"},"1481024629":{"s":"506"},"1481024635":{"s":"510"},"1481024641":{"s":"512"},"1481024647":{"s":"501"},"1481024653":{"s":"509"},"1481024660":{"s":"500"},"1481024665":{"s":"526"},"1481024671":{"s":"508"},"1481024677":{"s":"522"},"1481024683":{"s":"490"},"1481024689":{"s":"508"},"1481024695":{"s":"506"},"1481024702":{"s":"493"},"1481024707":{"s":"527"},"1481024713":{"s":"490"},"1481024719":{"s":"504"},"1481024725":{"s":"464"},"1481024731":{"s":"507"},"1481024738":{"s":"501"},"1481024744":{"s":"503"},"1481024750":{"s":"525"},"1481024755":{"s":"514"},"1481024761":{"s":"509"},"1481024767":{"s":"510"},"1481024773":{"s":"498"},"1481024779":{"s":"482"},"1481024785":{"s":"483"},"1481024791":{"s":"490"},"1481024797":{"s":"523"},"1481024803":{"s":"495"},"1481024809":{"s":"498"},"1481024815":{"s":"507"},"1481024821":{"s":"487"},"1481024827":{"s":"472"},"1481024833":{"s":"473"},"1481024839":{"s":"423"},"1481024845":{"s":"386"},"1481024851":{"s":"456"},"1481024857":{"s":"513"},"1481024863":{"s":"494"},"1481024869":{"s":"518"},"1481024875":{"s":"496"},"1481024881":{"s":"453"},"1481024887":{"s":"454"},"1481024893":{"s":"415"},"1481024899":{"s":"452"},"1481024905":{"s":"467"},"1481024911":{"s":"451"},"1481024917":{"s":"494"},"1481024923":{"s":"502"},"1481024929":{"s":"508"},"1481024935":{"s":"501"},"1481024941":{"s":"490"},"1481024947":{"s":"483"},"1481024953":{"s":"534"},"1481024959":{"s":"494"},"1481024965":{"s":"515"},"1481024971":{"s":"512"},"1481024977":{"s":"525"},"1481024983":{"s":"475"},"1481024989":{"s":"528"},"1481024995":{"s":"505"},"1481025001":{"s":"508"},"1481025007":{"s":"515"},"1481025013":{"s":"481"},"1481025019":{"s":"455"},"1481025025":{"s":"437"},"1481025031":{"s":"366"},"1481025037":{"s":"410"},"1481025043":{"s":"424"},"1481025049":{"s":"431"},"1481025055":{"s":"424"},"1481025061":{"s":"493"},"1481025067":{"s":"521"},"1481025073":{"s":"494"},"1481025079":{"s":"506"},"1481025085":{"s":"509"},"1481025091":{"s":"501"},"1481025097":{"s":"514"},"1481025103":{"s":"500"},"1481025109":{"s":"508"},"1481025115":{"s":"521"},"1481025121":{"s":"499"},"1481025127":{"s":"442"},"1481025133":{"s":"461"},"1481025139":{"s":"439"},"1481025145":{"s":"482"},"1481025151":{"s":"510"},"1481025157":{"s":"520"},"1481025163":{"s":"487"},"1481025169":{"s":"454"},"1481025175":{"s":"455"},"1481025181":{"s":"418"},"1481025187":{"s":"381"},"1481025193":{"s":"379"},"1481025199":{"s":"390"},"1481025205":{"s":"378"},"1481025211":{"s":"372"},"1481025217":{"s":"388"},"1481025223":{"s":"376"},"1481025229":{"s":"403"},"1481025235":{"s":"373"},"1481025241":{"s":"437"},"1481025247":{"s":"492"},"1481025253":{"s":"495"},"1481025259":{"s":"471"},"1481025265":{"s":"465"},"1481025271":{"s":"508"},"1481025277":{"s":"502"},"1481025283":{"s":"508"},"1481025289":{"s":"504"},"1481025295":{"s":"502"},"1481025301":{"s":"500"},"1481025307":{"s":"515"},"1481025313":{"s":"513"},"1481025319":{"s":"490"},"1481025325":{"s":"500"},"1481025331":{"s":"515"},"1481025337":{"s":"504"},"1481025343":{"s":"496"},"1481025349":{"s":"469"},"1481025355":{"s":"390"},"1481025361":{"s":"385"},"1481025367":{"s":"386"},"1481025373":{"s":"411"},"1481025379":{"s":"487"},"1481025385":{"s":"426"},"1481025391":{"s":"377"},"1481025397":{"s":"413"},"1481025403":{"s":"425"},"1481025409":{"s":"525"},"1481025415":{"s":"505"},"1481025421":{"s":"498"},"1481025427":{"s":"509"},"1481025433":{"s":"388"},"1481025439":{"s":"507"},"1481025445":{"s":"487"},"1481025451":{"s":"449"},"1481025457":{"s":"400"},"1481025463":{"s":"386"},"1481025469":{"s":"488"},"1481025475":{"s":"511"},"1481025481":{"s":"516"},"1481025487":{"s":"504"},"1481025493":{"s":"506"},"1481025499":{"s":"493"},"1481025505":{"s":"510"},"1481025511":{"s":"517"},"1481025517":{"s":"522"},"1481025523":{"s":"448"},"1481025529":{"s":"495"},"1481025535":{"s":"494"},"1481025541":{"s":"516"},"1481025547":{"s":"510"},"1481025553":{"s":"481"},"1481025559":{"s":"483"},"1481025565":{"s":"493"},"1481025571":{"s":"504"},"1481025577":{"s":"518"},"1481025583":{"s":"497"},"1481025589":{"s":"445"},"1481025595":{"s":"454"},"1481025601":{"s":"401"},"1481025607":{"s":"393"},"1481025613":{"s":"429"},"1481025619":{"s":"461"},"1481025625":{"s":"387"},"1481025631":{"s":"520"},"1481025637":{"s":"525"},"1481025643":{"s":"516"},"1481025649":{"s":"495"},"1481025655":{"s":"500"},"1481025661":{"s":"466"},"1481025667":{"s":"417"},"1481025673":{"s":"417"},"1481025679":{"s":"470"},"1481025685":{"s":"479"},"1481025691":{"s":"420"},"1481025697":{"s":"402"},"1481025703":{"s":"424"},"1481025709":{"s":"499"},"1481025715":{"s":"434"},"1481025721":{"s":"417"},"1481025727":{"s":"424"},"1481025733":{"s":"491"},"1481025739":{"s":"526"},"1481025745":{"s":"491"},"1481025751":{"s":"506"},"1481025757":{"s":"485"},"1481025763":{"s":"378"},"1481025769":{"s":"532"},"1481025775":{"s":"517"},"1481025781":{"s":"497"},"1481025787":{"s":"509"},"1481025793":{"s":"497"},"1481025799":{"s":"447"},"1481025805":{"s":"489"},"1481025811":{"s":"470"},"1481025817":{"s":"509"},"1481025823":{"s":"440"},"1481025829":{"s":"422"},"1481025835":{"s":"448"},"1481025841":{"s":"512"},"1481025847":{"s":"498"},"1481025853":{"s":"522"},"1481025859":{"s":"510"},"1481025865":{"s":"516"},"1481025871":{"s":"508"},"1481025877":{"s":"502"},"1481025883":{"s":"525"},"1481025889":{"s":"507"},"1481025895":{"s":"508"},"1481025901":{"s":"503"},"1481025907":{"s":"508"},"1481025913":{"s":"519"},"1481025919":{"s":"504"},"1481025925":{"s":"511"},"1481025931":{"s":"492"},"1481025937":{"s":"463"},"1481025943":{"s":"418"},"1481025949":{"s":"421"},"1481025955":{"s":"350"},"1481025961":{"s":"382"},"1481025967":{"s":"386"},"1481025973":{"s":"492"},"1481025979":{"s":"490"},"1481025985":{"s":"406"},"1481025991":{"s":"347"},"1481025997":{"s":"469"},"1481026003":{"s":"487"},"1481026009":{"s":"354"},"1481026015":{"s":"471"},"1481026021":{"s":"350"},"1481026027":{"s":"360"},"1481026033":{"s":"507"},"1481026039":{"s":"500"},"1481026045":{"s":"516"},"1481026051":{"s":"502"},"1481026057":{"s":"506"},"1481026063":{"s":"479"},"1481026069":{"s":"534"},"1481026075":{"s":"418"},"1481026081":{"s":"349"},"1481026087":{"s":"371"},"1481026093":{"s":"358"},"1481026099":{"s":"428"},"1481026105":{"s":"423"},"1481026111":{"s":"351"},"1481026117":{"s":"358"},"1481026123":{"s":"447"},"1481026129":{"s":"445"},"1481026135":{"s":"441"},"1481026141":{"s":"500"},"1481026147":{"s":"513"},"1481026153":{"s":"486"},"1481026159":{"s":"512"},"1481026165":{"s":"504"},"1481026171":{"s":"513"},"1481026177":{"s":"519"},"1481026183":{"s":"504"},"1481026189":{"s":"517"},"1481026195":{"s":"512"},"1481026201":{"s":"500"},"1481026207":{"s":"512"},"1481026213":{"s":"525"},"1481026219":{"s":"494"},"1481026225":{"s":"518"},"1481026231":{"s":"496"},"1481026237":{"s":"511"},"1481026243":{"s":"497"},"1481026249":{"s":"491"},"1481026255":{"s":"508"},"1481026261":{"s":"499"},"1481026267":{"s":"462"},"1481026273":{"s":"474"},"1481026279":{"s":"469"},"1481026285":{"s":"477"},"1481026291":{"s":"507"},"1481026297":{"s":"512"},"1481026303":{"s":"500"},"1481026309":{"s":"521"},"1481026315":{"s":"504"},"1481026321":{"s":"476"},"1481026327":{"s":"532"},"1481026333":{"s":"507"},"1481026339":{"s":"511"},"1481026345":{"s":"515"},"1481026351":{"s":"503"},"1481026357":{"s":"504"},"1481026363":{"s":"522"},"1481026369":{"s":"507"},"1481026375":{"s":"493"},"1481026381":{"s":"531"},"1481026387":{"s":"507"},"1481026393":{"s":"519"},"1481026399":{"s":"512"},"1481026405":{"s":"507"},"1481026411":{"s":"511"},"1481026417":{"s":"495"},"1481026423":{"s":"508"},"1481026429":{"s":"507"},"1481026435":{"s":"512"},"1481026441":{"s":"501"},"1481026447":{"s":"521"},"1481026453":{"s":"500"},"1481026459":{"s":"460"},"1481026465":{"s":"430"},"1481026471":{"s":"422"},"1481026477":{"s":"402"},"1481026483":{"s":"437"},"1481026489":{"s":"475"},"1481026495":{"s":"511"},"1481026501":{"s":"496"},"1481026507":{"s":"519"},"1481026513":{"s":"480"},"1481026519":{"s":"531"},"1481026524":{"s":"499"},"1481026531":{"s":"497"},"1481026536":{"s":"509"},"1481026543":{"s":"478"},"1481026549":{"s":"519"},"1481026555":{"s":"498"},"1481026561":{"s":"517"},"1481026567":{"s":"492"},"1481026572":{"s":"523"},"1481026578":{"s":"505"},"1481026584":{"s":"507"},"1481026590":{"s":"499"},"1481026596":{"s":"506"},"1481026602":{"s":"513"},"1481026609":{"s":"484"},"1481026614":{"s":"534"},"1481026620":{"s":"497"},"1481026626":{"s":"524"},"1481026632":{"s":"491"},"1481026638":{"s":"518"},"1481026644":{"s":"510"},"1481026650":{"s":"521"},"1481026657":{"s":"491"},"1481026662":{"s":"461"},"1481026668":{"s":"444"},"1481026674":{"s":"505"},"1481026680":{"s":"484"},"1481026686":{"s":"515"},"1481026692":{"s":"481"},"1481026698":{"s":"434"},"1481026704":{"s":"512"},"1481026710":{"s":"496"},"1481026716":{"s":"514"},"1481026722":{"s":"513"},"1481026728":{"s":"511"},"1481026734":{"s":"498"},"1481026740":{"s":"511"},"1481026747":{"s":"484"},"1481026753":{"s":"440"},"1481026758":{"s":"457"},"1481026764":{"s":"476"},"1481026770":{"s":"466"},"1481026777":{"s":"457"},"1481026782":{"s":"503"},"1481026788":{"s":"465"},"1481026794":{"s":"475"},"1481026800":{"s":"491"},"1481026806":{"s":"511"},"1481026812":{"s":"452"},"1481026818":{"s":"425"},"1481026824":{"s":"419"},"1481026830":{"s":"448"},"1481026836":{"s":"508"},"1481026842":{"s":"474"},"1481026848":{"s":"518"},"1481026854":{"s":"511"},"1481026860":{"s":"499"},"1481026866":{"s":"431"},"1481026872":{"s":"384"},"1481026879":{"s":"397"},"1481026884":{"s":"432"},"1481026890":{"s":"364"},"1481026896":{"s":"490"},"1481026902":{"s":"524"},"1481026908":{"s":"516"},"1481026914":{"s":"498"},"1481026920":{"s":"481"},"1481026926":{"s":"520"},"1481026932":{"s":"513"},"1481026938":{"s":"507"},"1481026944":{"s":"509"},"1481026950":{"s":"512"},"1481026956":{"s":"474"},"1481026962":{"s":"400"},"1481026968":{"s":"401"},"1481026975":{"s":"395"},"1481026980":{"s":"523"},"1481026986":{"s":"461"},"1481026992":{"s":"437"},"1481026998":{"s":"505"},"1481027004":{"s":"511"},"1481027010":{"s":"514"},"1481027016":{"s":"476"},"1481027022":{"s":"504"},"1481027028":{"s":"511"},"1481027034":{"s":"500"},"1481027040":{"s":"506"},"1481027046":{"s":"498"},"1481027052":{"s":"514"},"1481027058":{"s":"511"},"1481027064":{"s":"493"},"1481027070":{"s":"524"},"1481027076":{"s":"494"},"1481027082":{"s":"524"},"1481027088":{"s":"416"},"1481027094":{"s":"455"},"1481027100":{"s":"480"},"1481027106":{"s":"510"},"1481027112":{"s":"511"},"1481027118":{"s":"504"},"1481027124":{"s":"367"},"1481027130":{"s":"359"},"1481027136":{"s":"357"},"1481027142":{"s":"354"},"1481027148":{"s":"397"},"1481027154":{"s":"359"},"1481027160":{"s":"354"},"1481027166":{"s":"361"},"1481027172":{"s":"371"},"1481027178":{"s":"384"},"1481027184":{"s":"360"},"1481027190":{"s":"346"},"1481027196":{"s":"369"},"1481027202":{"s":"364"},"1481027208":{"s":"424"},"1481027214":{"s":"489"},"1481027220":{"s":"509"},"1481027226":{"s":"508"},"1481027232":{"s":"524"},"1481027238":{"s":"504"},"1481027244":{"s":"515"},"1481027250":{"s":"516"},"1481027256":{"s":"467"},"1481027262":{"s":"506"},"1481027268":{"s":"524"},"1481027274":{"s":"501"},"1481027280":{"s":"506"},"1481027286":{"s":"505"},"1481027292":{"s":"472"},"1481027298":{"s":"361"},"1481027304":{"s":"366"},"1481027310":{"s":"526"},"1481027316":{"s":"507"},"1481027322":{"s":"509"},"1481027328":{"s":"502"},"1481027334":{"s":"498"},"1481027340":{"s":"360"},"1481027346":{"s":"356"},"1481027352":{"s":"353"},"1481027358":{"s":"359"},"1481027364":{"s":"382"},"1481027370":{"s":"431"},"1481027376":{"s":"359"},"1481027382":{"s":"381"},"1481027388":{"s":"373"},"1481027394":{"s":"456"},"1481027400":{"s":"500"},"1481027406":{"s":"389"},"1481027412":{"s":"354"},"1481027418":{"s":"491"},"1481027424":{"s":"512"},"1481027430":{"s":"484"},"1481027436":{"s":"469"},"1481027442":{"s":"409"},"1481027448":{"s":"497"},"1481027454":{"s":"501"},"1481027460":{"s":"542"},"1481027466":{"s":"451"},"1481027472":{"s":"427"},"1481027478":{"s":"445"},"1481027484":{"s":"465"},"1481027490":{"s":"501"},"1481027496":{"s":"505"},"1481027502":{"s":"502"},"1481027508":{"s":"509"},"1481027514":{"s":"514"},"1481027520":{"s":"501"},"1481027526":{"s":"530"},"1481027532":{"s":"507"},"1481027538":{"s":"495"},"1481027544":{"s":"497"},"1481027550":{"s":"515"},"1481027556":{"s":"509"},"1481027562":{"s":"499"},"1481027568":{"s":"506"},"1481027574":{"s":"513"},"1481027580":{"s":"508"},"1481027586":{"s":"501"},"1481027592":{"s":"518"},"1481027598":{"s":"496"},"1481027604":{"s":"504"},"1481027610":{"s":"526"},"1481027616":{"s":"521"},"1481027622":{"s":"498"},"1481027628":{"s":"503"},"1481027634":{"s":"524"},"1481027640":{"s":"488"},"1481027646":{"s":"514"},"1481027652":{"s":"510"},"1481027658":{"s":"502"},"1481027664":{"s":"506"},"1481027670":{"s":"496"},"1481027676":{"s":"508"},"1481027682":{"s":"509"},"1481027688":{"s":"503"},"1481027694":{"s":"525"},"1481027700":{"s":"481"},"1481027706":{"s":"518"},"1481027712":{"s":"512"},"1481027718":{"s":"512"},"1481027724":{"s":"467"},"1481027730":{"s":"355"},"1481027736":{"s":"369"},"1481027742":{"s":"380"},"1481027748":{"s":"424"},"1481027754":{"s":"508"},"1481027760":{"s":"513"},"1481027766":{"s":"505"},"1481027772":{"s":"502"},"1481027778":{"s":"499"},"1481027784":{"s":"538"},"1481027790":{"s":"491"},"1481027796":{"s":"513"},"1481027802":{"s":"487"},"1481027808":{"s":"482"},"1481027814":{"s":"512"},"1481027820":{"s":"511"},"1481027826":{"s":"503"},"1481027832":{"s":"397"},"1481027838":{"s":"396"},"1481027844":{"s":"382"},"1481027850":{"s":"414"},"1481027856":{"s":"380"},"1481027862":{"s":"383"},"1481027868":{"s":"386"},"1481027874":{"s":"384"},"1481027880":{"s":"489"},"1481027886":{"s":"511"},"1481027892":{"s":"481"},"1481027898":{"s":"415"},"1481027904":{"s":"502"},"1481027910":{"s":"381"},"1481027916":{"s":"418"},"1481027922":{"s":"471"},"1481027928":{"s":"418"},"1481027934":{"s":"512"},"1481027940":{"s":"484"},"1481027946":{"s":"540"},"1481027952":{"s":"469"},"1481027958":{"s":"502"},"1481027964":{"s":"446"},"1481027970":{"s":"356"},"1481027976":{"s":"378"},"1481027982":{"s":"482"},"1481027988":{"s":"353"},"1481027994":{"s":"348"},"1481028000":{"s":"353"},"1481028006":{"s":"452"},"1481028012":{"s":"488"},"1481028018":{"s":"481"},"1481028024":{"s":"460"},"1481028030":{"s":"481"},"1481028036":{"s":"504"},"1481028042":{"s":"516"},"1481028048":{"s":"489"},"1481028054":{"s":"498"},"1481028060":{"s":"500"},"1481028066":{"s":"505"},"1481028072":{"s":"525"},"1481028078":{"s":"492"},"1481028084":{"s":"517"},"1481028090":{"s":"496"}},"status":1}



/device/event/map/:uuid/:start/:end

Получение карты событий потока (/device/event/map/:uuid/:start/:end)
Метод получает карту событий потока в выбранном интервале времени (start - начало в формате UNIX, end - конец в формате UNIX).

URL:/device/event/map
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID, start, end
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/event/map/$uuid/$start/$length", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
     "code":200,
     "message":{
        "1480477678465993180":{
           "s":"1000"
        },
        "1480477682819010348":{
           "s":"1001"
        },
        "1480477696369787315":{
           "s":"1015"
        },
        "1480477706077643754":{
           "s":"1009"
        },
        "1480477709636234763":{
           "s":"2000"
        },
        "1480477709683888679":{
           "s":"4000"
        },
        "1480477734875141200":{
           "s":"3002"
        },
        "1480531112274343683":{
           "s":"2000"
        },
        "1480531112274398409":{
           "s":"4000"
        },
        "1480534213436065696":{
           "s":"2000"
        },
        "1480534213436108622":{
           "s":"4000"
        },
        "1480536804409425825":{
           "s":"2000"
        },
        "1480536804409461975":{
           "s":"4000"
        },
        "1480558866665280948":{
           "s":"2000"
        },
        "1480558866665334501":{
           "s":"4000"
        },
        "1480562209730194411":{
           "s":"2000"
        },
        "1480562209730239074":{
           "s":"4000"
        },
        "1480696997702407908":{
           "s":"2000"
        },
        "1480696997702450268":{
           "s":"4000"
        },
        "1480850381226938126":{
           "s":"2000"
        },
        "1480850381226988859":{
           "s":"4000"
        },
        "1480854733738816533":{
           "s":"1000"
        },
        "1480854740489469437":{
           "s":"2000"
        },
        "1480854740489492949":{
           "s":"4000"
        },
        "1480907986778986348":{
           "s":"1000"
        },
        "1480907995156547426":{
           "s":"1001"
        },
        "1480908052410014266":{
           "s":"2000"
        },
        "1480908052410074060":{
           "s":"4000"
        },
        "1481006730957565187":{
           "s":"3000"
        },
        "1481006737418724604":{
           "s":"2000"
        },
        "1481006737418777558":{
           "s":"4000"
        },
        "1481018187906915435":{
           "s":"2000"
        },
        "1481018187906950516":{
           "s":"4000"
        },
        "1481019080511114242":{
           "s":"2000"
        },
        "1481019080511162270":{
           "s":"4000"
        },
        "1481020695078634631":{
           "s":"2000"
        },
        "1481020695078662596":{
           "s":"4000"
        },
        "1481022184108970692":{
           "s":"2000"
        },
        "1481022184109014075":{
           "s":"4000"
        },
        "1481022756098247946":{
           "s":"3000"
        },
        "1481022763014906297":{
           "s":"2000"
        },
        "1481022763014946789":{
           "s":"4000"
        },
        "1481022972160788013":{
           "s":"3000"
        },
        "1481022978767555021":{
           "s":"2000"
        },
        "1481022978767600146":{
           "s":"4000"
        },
        "1481023019008095086":{
           "s":"3000"
        },
        "1481023025629692778":{
           "s":"2000"
        },
        "1481023025629744879":{
           "s":"4000"
        },
        "1481023045042898044":{
           "s":"3000"
        },
        "1481023051528738021":{
           "s":"2000"
        },
        "1481023052844036991":{
           "s":"4000"
        },
        "1481023174243122698":{
           "s":"3000"
        },
        "1481023181211813310":{
           "s":"2000"
        },
        "1481023181211915122":{
           "s":"4000"
        },
        "1481023182602630362":{
           "s":"3000"
        },
        "1481023189380557566":{
           "s":"2000"
        },
        "1481023189380608165":{
           "s":"4000"
        },
        "1481023191264232983":{
           "s":"3000"
        },
        "1481023198060107907":{
           "s":"2000"
        },
        "1481023198060156205":{
           "s":"4000"
        },
        "1481023266431319963":{
           "s":"2000"
        },
        "1481023266431354994":{
           "s":"4000"
        }
     },
     "status":1
  }
  //WAR
  CONS_ERROR_STREAM_OFFLINE                   = 1000
  CONS_ERROR_STREAM_CONNECTION                = 1001
  CONS_ERROR_STREAM_URL                       = 1002
  CONS_ERROR_STREAM_OPTIONS_WRITE             = 1003
  CONS_ERROR_STREAM_OPTIONS_READ              = 1004
  CONS_ERROR_STREAM_AUTH_BASIC                = 1005
  CONS_ERROR_STREAM_AUTH_DIGEST               = 1006
  CONS_ERROR_STREAM_UNSUPPORTED_CODE_OPTIONS  = 1007
  CONS_ERROR_STREAM_DESCRIBE_WRITE            = 1008
  CONS_ERROR_STREAM_DESCRIBE_READ             = 1009
  CONS_ERROR_STREAM_UNSUPPORTED_CODE_DESCRIBE = 1010
  CONS_ERROR_STREAM_SETUP_WRITE               = 1011
  CONS_ERROR_STREAM_SETUP_READ                = 1012
  CONS_ERROR_STREAM_UNSUPPORTED_CODE_SETUP    = 1013
  CONS_ERROR_STREAM_PLAY_WRITE                = 1014
  CONS_ERROR_STREAM_PLAY_READ                 = 1015
  CONS_ERROR_STREAM_UNSUPPORTED_CODE_PLAY     = 1016
  CONS_ERROR_STREAM_CLOUD_NOT_FOUND           = 1017
  //SUCCESS
  CONS_SUCCESS_STREAM_ONLINE = 2000
  //INFO
  CONS_INFO_STREAM_RESTART        = 3000
  CONS_INFO_STREAM_EXIT_NO_CLIENT = 3001
  CONS_INFO_STREAM_AUDIO_SYNC     = 3002
  //RECOMMEND
  CONS_RECOMMEND_CHANGE_TO_AAC = 4000



/devices/select

Получение информации о группе потоков (/devices/select)
Метод возвращает массив выбранных потоков с их описанием и параметрами.

URL:/devices/select
Метод:POST
Авторизация:нет
Ожидаемые параметры:LIST
Формат ответа:JSON
Пример запроса к серверу:
  $data = array('list' => "'5_JrVIeaK4x9k4Kzsc3vfYYqHdFojf3M', '1PT9L4ntSlLY6hZpoQbrPuBZge20q87'");
  $data_string = json_encode($data);
  $postdata = http_build_query(array("stream" => $data_string));
  $context = stream_context_create(
  array(
          'http'=>array(
                          'header'  => 'Content-type: application/x-www-form-urlencoded',
                          'method' => 'POST',
                          'content' => $postdata
                       )
      )
  );
  if ($reply =  @file_get_contents("http://server:port/devices/select", false ,$context)) {
  	//удачное добавление устройства на сервер
  	echo $reply;
  }else{
  	//ошибка
  }
Пример ответа от сервера:
  {
    "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
  }



/devices/all

Получение информации обо всех потоках клиента (/devices/all)
Метод возвращает массив всех потоков клиента с их описанием и параметрами.

URL:/devices/all
Метод:GET
Авторизация:нет
Ожидаемые параметры:none
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/devices/all", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
    "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
  }



/device/add/

Добавление потока на сервер (/device/add/)
Метод добавляет поток на сервер с указанными параметрами.

URL:/device/add/
Метод:POST
Авторизация:нет
Ожидаемые параметры:none
Формат ответа:JSON
Пример запроса к серверу:
  $data = array('urlmain' => 'http://admin:123456@171.25.235.18/mpeg4', 'streamtype' => 2);
  $data_string = json_encode($data);
  $postdata = http_build_query(array("stream" => $data_string));
  $context = stream_context_create(
  array(
          'http'=>array(
                          'header'  => 'Content-type: application/x-www-form-urlencoded',
                          'method' => 'POST',
                          'content' => $postdata
                       )
      )
  );
  if ($reply =  @file_get_contents("http://server:port/devices/add", false ,$context)) {
  	echo $reply;
  }else{
  	//ошибка
  }
Пример ответа от сервера:
  {
    "code": 200,
    "message": {
      "uuid": "e0638b1e-bf1e-4194-8a51-9cc36678756d"
    },
    "status": 1
  }



/device/edit/:uuid

Редактирование потока (/device/edit/:uuid)
Метод записывает изменения параметров потока.

URL:/device/edit
Метод:POST
Авторизация:да
Ожидаемые параметры:UUID
Формат ответа:JSON
Пример запроса к серверу:
  $data = array('streamtype' => 1);
  $data_string = json_encode($data);
  $postdata = http_build_query(array("stream" => $data_string));
  $context = stream_context_create(
  array(
          'http'=>array(
                          'header'  => 'Content-type: application/x-www-form-urlencoded',
                          'method' => 'POST',
                          'content' => $postdata
                       )
      )
  );
  if ($reply =  @file_get_contents("http://server:port/devices/edit", false ,$context)) {
  	echo $reply;
  }else{
  	//ошибка
  }
Пример ответа от сервера:
  {
    "code": 200,
    "message": "Success",
    "status": 1
  }



/device/del/:uuid

Удаление потока (/device/del/:uuid)
Метод удаляет поток.

URL:/device/del
Метод:GET
Авторизация:нет
Ожидаемые параметры:UUID
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/del/$uuid", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
    "code": 200,
    "message": "Success",
    "status": 1
  }



/device/reload/:uuid

Принудительный перезапуск потока (/device/reload/:uuid)
Метод инициирует процедуру переподключения к потоку.

URL:/device/reload
Метод:GET
Авторизация:да
Ожидаемые параметры:UUID
Формат ответа:JSON
Пример запроса к серверу:
if($reply = @file_get_contents("http://server:port/device/reload/$uuid", 0,stream_context_create(array('http' => array('timeout' => '3'))))){
echo $reply;
}else{
echo "api сервер не доступен";
}
Пример ответа от сервера:
  {
    "code": 200,
    "message": "Success",
    "status": 1
  }



/doc

Получение информации о сервере (/doc)
Метод выводит страницу документации по использованию сервиса.

URL:/doc
Метод:GET
Авторизация:нет
Ожидаемые параметры:none
Формат ответа:HTML

ß