Differences

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

Link to this comparison view

en:d-sdk:2_users:3_user_info [2018/04/23 16:16]
info@geliossoft.ru created
en:d-sdk:2_users:3_user_info [2018/04/23 17:37]
info@geliossoft.ru
Line 1: Line 1:
-FIXME **This page is not fully translated, yetPlease help completing the translation.**\\ //(remove this paragraph once the translation is finished)//+====== User's info ====== 
 +Request provides possibility to receive information about user.
  
-====== Информация о пользователе ====== +=== Request example ​===
-Запрос предназначен для получения информации об учетной записи. +
- +
-=== Пример запроса ​===+
 <code php>&​svc=get_user_info&​params={ <code php>&​svc=get_user_info&​params={
     "​id":​integer     "​id":​integer
 }</​code>​ }</​code>​
  
-=== Параметры ​=== +=== Parameters ​=== 
-Параметр ​  ^ Значение ​  ^ +Parameter ​  ^ Description ​  ^ 
-| id | Уникальный идентификатор пользователя ​|+| id | Unique Id of user |
  
-=== Дополнительно ​=== +=== Additional information ​=== 
-Возвращает полную информацию по пользователю.+Provides full information about user.
  
-=== Ответ сервера ​=== +=== Server'​s response ​=== 
-== Информация о пользователе ​==+== User's info ==
 <code php>​{ ​ <code php>​{ ​
     "​id":​24279,​ // ID     "​id":​24279,​ // ID
-    "​creator":​24237,​ // ID создателя пользователя +    "​creator":​24237,​ // ID of the creator 
-    "​login":"​newtestUser",​ // Логин ​ +    "​login":"​newtestUser",​ // login  
-    "​is_admin":​0,​ // 0 - пользователь не является администратором; 1 - пользователь является администратором +    "​is_admin":​0,​ // 0 - user has no admin access; 1 - user has admin access 
-    "​address_base":"​Google",​ // Используемая адресная база. **Важно!** Настраивается только на локальных серверах +    "​address_base":"​Google",​ // Address base settings. **Warning!** This setting is available only on Gelios Server. 
-    "​time_zone":​10800,​ // Смещение часового пояса в секундах +    "​time_zone":​10800,​ // Timezone offset in secconds 
-    "​mail":"",​ // Электронный почтовый ящик ​ +    "​mail":"",​ // Email 
-    "​phone":"",​ // Телефонный номер ​ +    "​phone":"",​ // Phone number ​ 
-    "​account":"​0",​ // Баланс +    "​account":"​0",​ // Balance 
-    "​cost_unit":​null,​ // Стоимость объекта +    "​cost_unit":​null,​ // Unit cost 
-    "​is_block":​0,​ // Статус учетной записи: 0 - заблокирована, 1 - не заблокирована +    "​is_block":​0,​ // User's status: 0 - not blocked, 1 - blocked 
-    "​cost_day":​null,​ // Граница блокировки для типа оплаты ​"Списывать дни+    "​cost_day":​null,​ // Limit for "Write off days" ​type 
-    "​cost_mode":"",​ // Режим оплаты +    "​cost_mode":"",​ // Method of payment 
-    "​days":​null,​ // Количество дней на балансе +    "​days":​null,​ // Amount of days on balance 
-    "​winter_time":​0,​ // Переход на зимнее время +    "​winter_time":​0,​ // Daylight saving time 
-    "​legal_name":"",​ // Наименование юридического лица +    "​legal_name":"",​ // Name of the legal entity 
-    "​location":"",​ // Адрес +    "​location":"",​ // Address 
-    "​lat_lon":"",​ // Координаты центрирования карты +    "​lat_lon":"",​ // Default map center coordinates 
-    "​currency":"",​ // Валюта учетной записи +    "​currency":"",​ // Currency 
-    "​date_create":​1516010338,​ // Дата создания +    "​date_create":​1516010338,​ // Date of creation 
-    "​date_block":​null,​ // Дата блокировки +    "​date_block":​null,​ // Blocking date 
-    "​last_login":​null,​ // Дата последнего входа в систему +    "​last_login":​null,​ // Last authorization date 
-    "​services":​[],​ // Список подключенных сервисов+    "​services":​[],​ // List of active services
     "​photo":​{"​big":"","​small":""​}     "​photo":​{"​big":"","​small":""​}
 }</​code>​ }</​code>​