Differences
This shows you the differences between two versions of the page.
Next revision Both sides next revision | |||
en:d-sdk:2_users:9_create_user [2018/04/23 16:20] info@geliossoft.ru created |
en:d-sdk:2_users:9_create_user [2018/04/24 21:42] support@geliossoft.ru |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// | + | ====== Create new user ====== |
+ | The request is intended to create new user account. | ||
- | ====== Создание пользователя ====== | + | === Request Example === |
- | Запрос предназначен для создания новой учетной записи. | + | |
- | + | ||
- | === Пример запроса === | + | |
<code php> | <code php> | ||
&svc=create_user¶ms={ | &svc=create_user¶ms={ | ||
Line 27: | Line 25: | ||
} | } | ||
</code> | </code> | ||
- | === Параметры === | + | === Parameters === |
- | ^ Параметр ^ Значение ^ | + | ^ Parameter ^ Description ^ |
- | | login | Логин учетной записи. | | + | | login | User Login | |
- | | pass | Пароль учетной записи. | | + | | pass | User Password | |
- | | is_admin | Устанавливает права администратора для учетной записи:\\ <code php>1 // Пользователь будет обладать правами администратора. | + | | is_admin | Sets administrator rights:\\ <code php>1 // User will have administrator rights. |
- | 0 // У пользователя не будет прав администратора.</code>| | + | 0 // User will not have administrator rights.</code>| |
- | | address_base | **Важно!** //Gelios Hosting использует собственную адресную базу и переключение не возможно. Настройка актуальна для Gelios Server.//\\ Устанавливает используемую адресную базу:\\ <code php>"Google" // Адресная база Google | + | | address_base | **IMPORTANT!** //Gelios Hosting uses its own address base and switching is impossible. The setting is relevant for Gelios Server.//\\ Sets the used address base:\\ <code php>"Google" // Google Address Base |
- | "Yandex" // Адресная база Yandex | + | "Yandex" // Yandex Address Base |
- | "Wialon" // Адресная база Wialon</code> | | + | "Wialon" // Wialon Address Base</code> | |
- | | email | Электронная почта учетной записи. | | + | | email | User Account Email | |
- | | phone | Телефонный номер учетной записи. | | + | | phone | User Account Phone Number. | |
- | | language | Язык интерфейса учетной записи. | | + | | language | Interface language of the user account | |
- | | creator | Владелец учетной записи. | | + | | creator | Creator of the User Account. | |
- | | location | Местоположение учетной записи. | | + | | location | User Account Location. | |
- | | legal_name | Название юридического лица учетной записи. | | + | | legal_name | Name of the legal entity of the user account. | |
- | | lat_lon | Координаты первоначального центрирования карты для учетной записи. | | + | | lat_lon | The coordinates of the initial centering of the card for the user account. | |
- | | cost_mode | Режим оплаты для учетной записи:\\ <code php>"units" // Ежемесячная абонентская плата | + | | cost_mode | Payment mode for the user account:\\ <code php>"units" // Monthly fee for all units |
- | "days" // Списывать дни | + | "days" // Cost by days |
- | "units_days" //Ежедневный платеж по активным объектам | + | "units_days" //Daily payment for active units |
- | "units_days_all" //Ежедневный платеж по всем объектам</code> | | + | "units_days_all" //Daily payment for all units</code> | |
- | | cost_unit | Стоимость объекта для учетной записи. Для ежемесячно абонентской платы указывается стоимость в месяц, при ежедневной оплате - стоимость в день. | | + | | cost_unit | Unit cost for user account. For a monthly fee for units is indicated the cost per month, with daily payment - the cost per day. | |
- | | currency | Валюта оплаты для учетной записи. | | + | | currency | Payment currency for user account. | |
- | | cost_day | Граница блокировки для типа оплаты "Списывать дни". | | + | | cost_day | Limit for payment type "Cost by days". | |
- | | hide_menu | Устанавливает список частей интерфейса, которые необходимо **скрыть** для отображения на учетной записи:\\ <code php>"monitoring" // Раздел Автомобили | + | | hide_menu | Sets the list of parts of the user interface that you want to **hide** for user account:\\ <code php>"monitoring" // Cars |
- | "unit_phone" // Телефон объекта | + | "unit_phone" // Unit phone number |
- | "create_cmd" // Отправка команд | + | "create_cmd" // Send Command |
- | "waybills" // Путевые листы | + | "waybills" // Waybills |
- | "files" // Файлы | + | "files" // Files |
- | "chat" // Чат | + | "chat" // Chat |
- | "unit_edit" // Изменить название | + | "unit_edit" // Change name |
- | "features" // Характеристики | + | "features" // Features |
- | "tracks" // Раздел Треки | + | "tracks" // Tracks |
- | "report" // Раздел Отчеты | + | "report" // Reports |
- | "general_templates" // Общие шаблоны | + | "general_templates" // General Report Templates |
- | "graph" // Раздел Графики | + | "graph" // Graphs |
- | "geo_object" // Раздел Геообъекты | + | "geo_object" // Geosites |
- | "notification" // Раздел Уведомления | + | "notification" // Notifications |
- | "edit_notifications" // Редактирование уведомлений | + | "edit_notifications" // Edit Notifications |
- | "type_notif_email" // Тип уведомлений E-mail | + | "type_notif_email" // Type of notification E-mail |
- | "type_notif_sms" // Тип уведомлений СМС | + | "type_notif_sms" // Type of notification SMS |
- | "type_notif_online" // Тип уведомлений онлайн | + | "type_notif_online" // Type of notification online |
- | "type_notif_http" // Тип уведомлений HTTP | + | "type_notif_http" // Type of notification HTTP |
- | "type_notif_cmd" // Тип уведомлений команда | + | "type_notif_cmd" // Type of notification command |
- | "routes" // Раздел Маршруты | + | "routes" // Routes |
- | "drivers" // Раздел Водители | + | "drivers" // Drivers |
- | "documentation" // Меню Документация | + | "documentation" // Documentation |
- | "maintenance" // Раздел Техническое обслуживание | + | "maintenance" // Maintenance |
- | "alarms" // Раздел Тревога | + | "alarms" // Alarm |
- | "berlio" // Раздел Топливные карты | + | "berlio" // Fuel card |
- | "change_password" // Возможность смены пароля</code> | | + | "change_password" // Change password</code> | |
- | === Дополнительно === | + | === Additional Information === |
- | Необязательные параметры: | + | Optional parameters: |
"is_admin":1, | "is_admin":1, | ||
- | "address_base":"Google", "time_zone":0, "email":mail@mail.ru, "phone":"1234567", "language":"en", "creator":1, "location":"Минск", "legal_name":"organization", "lat_lon":"23.2323,57.211", "cost_mode": "units | days", "cost_day": 10, "currency": "eur", "cost_unit": 1.5, "hide_menu":"sensor,report,video,graph,routes,drivers,maintenance,alarms,berlio,waybills, files,chat,features,general_templates" Чтобы добавить "+" в номер телефона - %2B | + | "address_base":"Google", "time_zone":0, "email":mail@mail.ru, "phone":"1234567", "language":"en", "creator":1, "location":"Минск", "legal_name":"organization", "lat_lon":"23.2323,57.211", "cost_mode": "units | days", "cost_day": 10, "currency": "eur", "cost_unit": 1.5, "hide_menu":"sensor,report,video,graph,routes,drivers,maintenance,alarms,berlio,waybills, files,chat,features,general_templates" To add "+" in phone number - %2B |
- | === Ответ сервера === | + | === Server Response === |
- | == Пользователь успешно создан == | + | == User successfully created == |
<code php>{ | <code php>{ | ||
- | "user_id":"24279", // ID созданного пользователя | + | "user_id":"24279", // ID of the created user |
- | "units_group_id":"28840", // ID группы объектов созданного пользователя | + | "units_group_id":"28840", // Units Group ID of the created user |
- | "users_group_id":"24640" // ID группы пользователей созданного пользователя | + | "users_group_id":"24640" // Users Group ID of the created user |
}</code> | }</code> |