Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:d-sdk:4_units:8_get_unit_msgs [2018/04/25 09:59]
info@geliossoft.ru created
en:d-sdk:4_units:8_get_unit_msgs [2019/08/29 17:47]
cappopt@gmail.com
Line 1: Line 1:
-FIXME **This page is not fully translated, yetPlease help completing the translation.**\\ //(remove this paragraph once the translation is finished)//+====== Unit Messages ====== 
 +The request ​is intended to receive unit messages.
  
-====== Получение сообщений объекта ====== +=== Request Example ​===
-Запрос предназначен для получения сообщений объекта. +
- +
-=== Пример запроса ​===+
 <code php>&​svc=get_unit_msgs&​params=[ <code php>&​svc=get_unit_msgs&​params=[
     {     {
Line 16: Line 14:
 ]</​code>​ ]</​code>​
  
-=== Параметры ​=== +=== Parameters ​=== 
-Параметр ​  ^ Значение ​  ^ +Parameter ​  ^ Description ​  ^ 
-| id_unit | Уникальный идентификатор объекта ​+| id_unit | Unique Unit ID 
-| from | Начало периода сообщений ​+| from | Start time of unit messages ​
-| to | Конец периода сообщений ​+| to | End time of unit messages ​
-| fields | Список получаемых полей сообщений ​+| fields | List of required fields to recieve ​
-| is_online | Объект в online |+| is_online | Unit online |
  
-=== Дополнительно ​=== +=== Additional Information ​=== 
-Необязательный параметры:+Optional parameters:
  
-fields - указать отдельные поля из '​time,​lat,​lon,​speed,​course,​height,​sats,​params,​unit_type,​unit_id,​time_speed'​. +fields - specify the individual fields of '​time,​lat,​lon,​speed,​course,​height,​sats,​params,​unit_type,​unit_id,​time_speed'​. 
-Сообщения нескольких объектов ​site.sdk/?​login=demo&​pass=demo&​svc=get_units_msgs&​params=[{"​id_unit":​57,"​from":​1422599311,"​to":​1423466292},​{"​id_unit":​82,"​from":​1422599311}]+Several units messages ​site.sdk/?​login=demo&​pass=demo&​svc=get_unit_msgs&​params=[{"​id_unit":​57,"​from":​1422599311,"​to":​1423466292},​{"​id_unit":​82,"​from":​1422599311}]
  
-Необязательный параметры+Optional Parameter
-is_online - получить сообщения только из онлайн+is_online - receive messages only from online
  
-=== Ответ сервера ​=== +=== Server Response ​=== 
-== Результат запроса ​==+== Result ​==
 <code php>[ <code php>[
     {     {
-        "​id":​12615246,​ // ID сообщения +        "​id":​12615246,​ // Message ​ID 
-        "​time":​1516726445,​ // Время сообщения +        "​time":​1516726445,​ // Time of message 
-        "​lat":"​53.909869",​ // Широта +        "​lat":"​53.909869",​ // Latitude 
-        "​lon":"​27.499587",​ // Долгота +        "​lon":"​27.499587",​ // Longitude 
-        "​speed":​0,​ // Скорость +        "​speed":​0,​ // Speed 
-        "​course":​0,​ // Направление движения +        "​course":​0,​ // Movement direction 
-        "​height":​225,​ // Высота над уровнем моря +        "​height":​225,​ // Height above sea level 
-        "​sats":​0,​ // Количество спутников +        "​sats":​0,​ // Number of satellites 
-        "​params":""​ // Параметры сообщения+        "​params":""​ // Parameters of message
     },     },
     ...     ...
 </​code>​ </​code>​