Получение ключей через API в личном кабинете/en: различия между версиями

Материал из SmartPlayer
Новая страница: «Getting API Keys via the Personal Account»
 
Новая страница: «== '''Description of the Situation''' == The SmartPlayer platform has added a feature that allows users to request an API key for integration through the personal account. This page explains how to correctly use this solution. {{Note|To create an API key, the user must have the “Administrator” role.|warn}} == '''Action Algorithm''' == To request an API key, the user must log in or register on the SmartPlayer platform.<br> Next, the user should scroll dow...»
 
Строка 1: Строка 1:
<div lang="ru" dir="ltr" class="mw-content-ltr">
== '''Description of the Situation''' ==
== '''Описание ситуации''' ==
The SmartPlayer platform has added a feature that allows users to request an API key for integration through the personal account. This page explains how to correctly use this solution.
В платформе SmartPlayer добавилась функциональность, позволяющая пользователю запросить API-ключ для интеграции через личный кабинет. На странице будет описано, как правильно использовать данное решение.
{{Note|To create an API key, the user must have the “Administrator” role.|warn}}
{{Note|Для создания API-ключа пользователь должен иметь роль «Администратор».|warn}}
== '''Action Algorithm''' ==
== '''Алгоритм действия''' ==
To request an API key, the user must log in or register on the SmartPlayer platform.<br>
Чтобы пользователь мог запросить API-ключ, ему необходимо авторизоваться / зарегистрироваться на платформе.<br>
Next, the user should scroll down the main page and go to the “Settings” section.
Далее пользователь должен пролистать главную страницу вниз и перейти к разделу «Настройки».
[[File:Настройки раздел лк.png|thumb|center| Example of the “Settings” section in the personal account |800px]]
[[File:Настройки раздел лк.png|thumb|center| Пример отображения раздела «Настройки» в личном кабинете |800px]]
In the “Settings” section, the user must also scroll down and find the “For Developers” category and click on it.
В разделе «Настройки» пользователю также необходимо пролистать вниз и найти категорию «Для разработчиков», кликнув по ней.
[[File:Для разработчиков в настройки.png|thumb|center| Example of the “For Developers” category display |800px]]
[[File:Для разработчиков в настройки.png|thumb|center| Пример отображения категория «Для разработчиков»|800px]]
In the expanded window, the user needs to click the “Open” button in the upper left part of the screen to open the page with parameters for creating an API key.
В развернувшемся окне пользователю нужно нажать на кнопку «Открыть» в левой верхней части экрана, чтобы открыть страницу с параметрами для создания API-ключа.
[[File:Кнопка_открыть.png|thumb|center| Example of the “Open” button |800px]]
[[File:Кнопка_открыть.png|thumb|center| Пример отображения кнопки «Открыть» |800px]]
== '''API Key Creation Page''' ==
== '''Страница для создания API-ключа''' ==
After opening the new page, the user will see a table with fields and two buttons: “Delete all keys” and “Create key” in the upper right corner.
Открыв новую страницу, пользователь увидит таблицу с полями и кнопки «Удалить все ключи» и «Создать ключ» в правой верхней части экрана.
[[File:Кнопка_открыть.png|thumb|center| Example of the API key creation page |800px]]
[[File:Кнопка_открыть.png|thumb|center| Пример отображения страницы создания API-ключей |800px]]
The API key creation page includes the following elements:
На странице создания API-ключа будут представлены следующие элементы:
* “Delete all keys” button allows you to delete all created API keys at once. To complete the process, confirmation in a modal window is required;
* Кнопка «Удалить все ключи» данная кнопка позволяет удалить все созданные API-ключи за одно нажатие. Для завершения процесса необходимо подтвердить удаление в модальном окне;
* “Create key” button opens the modal window for API key creation. To complete the process, fields must be filled and the key created;
* Кнопка «Создать ключ» кнопка открывает модальное окно создания API-ключа. Для завершения процесса необходимо заполнить поля и создать API-ключ;
* Selection checkbox allows multiple API keys to be selected for batch actions;
* Чекбокс (галочка) выделения позволяет сделать множественный выбор объектов (API-ключей) и взаимодействовать с ними;
* Key name the field where the key's name is displayed;
* Имя ключа поле, в котором будет отображаться имя ключа;
* Key the field where the user can see the last 4 characters of the API key;
* Ключ поле, в котором пользователь сможет увидеть последние 4 значения API-ключа;
* Creation date the field displaying the API key creation date;
* Дата создания поле, в котором отображается дата создания API-ключа;
* Expiration date the field displaying the date after which the API key becomes invalid;
* Дата окончания поле, в котором отображается дата, после которой API-ключ станет недействительным;
* Last used the field displaying the date the API key was last used for connection;
* Последнее использование поле, в котором отображается дата, когда созданный API-ключ был использован для подключения;
* “Delete” icon (trash can) — button to delete selected API keys.
* Иконка «Удалить» (мусорная корзина) — кнопка, позволяющая удалить выделенные API-ключи.
[[File:Созданный_апиключ.png|thumb|center| Example of the page with filled-in fields |800px]]
[[File:Созданный_апиключ.png|thumb|center| Пример отображения страницы с заполненными полями |800px]]
=== '''Creating an API Key''' ===
=== '''Создание API-ключа''' ===
After clicking the “Create key” button, the user will see a modal window.
После нажатия на кнопку «Создать ключ» пользователю откроется модальное окно.
[[File:Созданный_апиключ.png|thumb|center| Example of the modal window for API key creation |800px]]
[[File:Созданный_апиключ.png|thumb|center| Пример отображения модального окна для создания API-ключа |800px]]
In the window, the user must:
В окне необходимо:
# Come up with a name for the API key.
# Придумать название для API-ключа.
# Select its expiration date using the calendar.
# Выбрать срок его действия с помощью календаря.
[[File:Создание_ключа.png|thumb|center| Example of filling out API key creation parameters |800px]]
[[File:Создание_ключа.png|thumb|center| Пример отображения заполнения параметров создания API-ключа|800px]]
Then the user must copy the key using the special icon (highlighted in the screenshot) and check the “I have copied the key” box. This step is mandatory to complete the process — otherwise the system will not allow further actions.
Далее пользователь должен скопировать сам ключ с помощью специальной иконки (выделена на скриншоте) и поставить чекбокс (галочку) «Я скопировал ключ». Данное действие обязательно для завершения процесса создания ключа, иначе система не даст сделать других действий.
[[File:Завершение_создания_ключа.png|thumb|center| Example of the API key creation process |800px]]
[[File:Завершение_создания_ключа.png|thumb|center| Пример отображения процесса создания API-ключа|800px]]
{{Note|It is recommended to read the description of the created key.
{{Note|Рекомендуется прочитать описание к создаваемому ключу.
[[File:Примечание_описание.png|thumb|center| Example of a note display |800px]]|warn}}
[[File:Примечание_описание.png|thumb|center| Пример отображения примечания|800px]]|warn}}
== '''Feature Details''' ==
== '''Особенности работы функционала''' ==
This feature includes a set of specific characteristics:
Функционал имеет определённый набор особенностей:
* It is not allowed to use the same name for multiple API keys;
* При создании нескольких API-ключей нельзя использовать одно и то же имя;
* The lifespan of one API key is 1 year;
* Время жизни одного API-ключа — 1 год;
* Each created API key is unique;
* Каждый созданный API-ключ является уникальным;
* After creating an API key, it must be copied. If the user does not copy the key and leaves the API key creation page, it will no longer be possible to retrieve or copy it;
* После создания API-ключа, его обязательно нужно скопировать. Если пользователь не скопирует ключи и выйдет со страницы создания API-ключей, то он более не сможет его нигде получить и скопировать;
* The API key inherits and passes along the set of permissions of the user who created it.
* API-ключ перенимает и передает для подключения набор прав пользователя, который его создал.
== '''Video Tutorial''' ==
== '''Видеоинструкция''' ==
[https://vk.com/video-227547238_456239078 Getting API Keys via the Personal Account]
[https://vk.com/video-227547238_456239078 Получение ключей через API в личном кабинете]
== '''Additional Information''' ==
== '''Дополнительная информация''' ==
If this article does not help you use the feature as intended or you still have questions after reading it, you can ask them in the “Discussions” section at the top of the page.
Если данная статья не помогает использовать функционал по назначению или после ее прочтения остаются вопросы можно озвучить данные вопросы в разделе "Обсуждения" вверху страницы.
[[File:Обсуждение_апи-ключ.png|thumb|center| Example of the “Discussions” tab on a wiki page |800px]]
[[File:Обсуждение_апи-ключ.png|thumb|center| Пример отображения вкладки "Обсуждения" на wiki-странице |800px]]
You can also find more information on the page [[Как взаимодействовать пользователю с разделом "Обсуждения"]]
Также дополнительную информацию можно узнать на странице [[Как взаимодействовать пользователю с разделом "Обсуждения"]]
</div>

Текущая версия от 10:52, 13 июня 2025

Description of the Situation

The SmartPlayer platform has added a feature that allows users to request an API key for integration through the personal account. This page explains how to correctly use this solution.

To create an API key, the user must have the “Administrator” role.

Action Algorithm

To request an API key, the user must log in or register on the SmartPlayer platform.
Next, the user should scroll down the main page and go to the “Settings” section.

Example of the “Settings” section in the personal account

In the “Settings” section, the user must also scroll down and find the “For Developers” category and click on it.

Example of the “For Developers” category display

In the expanded window, the user needs to click the “Open” button in the upper left part of the screen to open the page with parameters for creating an API key.

Example of the “Open” button

API Key Creation Page

After opening the new page, the user will see a table with fields and two buttons: “Delete all keys” and “Create key” in the upper right corner.

Example of the API key creation page

The API key creation page includes the following elements:

  • “Delete all keys” button — allows you to delete all created API keys at once. To complete the process, confirmation in a modal window is required;
  • “Create key” button — opens the modal window for API key creation. To complete the process, fields must be filled and the key created;
  • Selection checkbox — allows multiple API keys to be selected for batch actions;
  • Key name — the field where the key's name is displayed;
  • Key — the field where the user can see the last 4 characters of the API key;
  • Creation date — the field displaying the API key creation date;
  • Expiration date — the field displaying the date after which the API key becomes invalid;
  • Last used — the field displaying the date the API key was last used for connection;
  • “Delete” icon (trash can) — button to delete selected API keys.
Example of the page with filled-in fields

Creating an API Key

After clicking the “Create key” button, the user will see a modal window.

Example of the modal window for API key creation

In the window, the user must:

  1. Come up with a name for the API key.
  2. Select its expiration date using the calendar.
Example of filling out API key creation parameters

Then the user must copy the key using the special icon (highlighted in the screenshot) and check the “I have copied the key” box. This step is mandatory to complete the process — otherwise the system will not allow further actions.

Example of the API key creation process
It is recommended to read the description of the created key.
Example of a note display

Feature Details

This feature includes a set of specific characteristics:

  • It is not allowed to use the same name for multiple API keys;
  • The lifespan of one API key is 1 year;
  • Each created API key is unique;
  • After creating an API key, it must be copied. If the user does not copy the key and leaves the API key creation page, it will no longer be possible to retrieve or copy it;
  • The API key inherits and passes along the set of permissions of the user who created it.

Video Tutorial

Getting API Keys via the Personal Account

Additional Information

If this article does not help you use the feature as intended or you still have questions after reading it, you can ask them in the “Discussions” section at the top of the page.

Example of the “Discussions” tab on a wiki page

You can also find more information on the page Как взаимодействовать пользователю с разделом "Обсуждения"