Difference between revisions of "API: Server info"
From BrainyCP
Line 18: | Line 18: | ||
| style="vertical-align: top;" | <div data-placeholder="Перевод" dir="ltr"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">username (post or get) * - login;<br/> password (send or receive) * - user password;<br/> hardware_info (post or get) * - constant, module name;<br/> hardware_info (post or get) * - constant, operation name;<br/> language (send or receive) - can take the value: en / ru (ru by default).</font></font></div> | | style="vertical-align: top;" | <div data-placeholder="Перевод" dir="ltr"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">username (post or get) * - login;<br/> password (send or receive) * - user password;<br/> hardware_info (post or get) * - constant, module name;<br/> hardware_info (post or get) * - constant, operation name;<br/> language (send or receive) - can take the value: en / ru (ru by default).</font></font></div> | ||
− | | style="vertical-align: top;" | <div data-placeholder="Перевод" dir="ltr"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> | + | | style="vertical-align: top;" | <div data-placeholder="Перевод" dir="ltr"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">error: 0, mess: 'Information about the system', detail [array_info];<br/> error: 400, mess: 'Unfortunately, the module is not available to you.'</font></font></div> |
|} | |} | ||
Latest revision as of 15:01, 17 November 2021
Administrative functions require API root rights to use any login hosted on the server. If you do not have root rights, you can only use your username.
Incoming data marked with an asterisk is required.
Incoming data marked with an asterisk is required.
Модуль |
Функция |
Входящие данные |
Варианты ошибок |
hardware_info |
Getting all information about the server. hardware_info |
username (post or get) * - login;
password (send or receive) * - user password; hardware_info (post or get) * - constant, module name; hardware_info (post or get) * - constant, operation name; language (send or receive) - can take the value: en / ru (ru by default). |
error: 0, mess: 'Information about the system', detail [array_info];
error: 400, mess: 'Unfortunately, the module is not available to you.' |
Other useful articles: