Настройка RSS для компаний/en: различия между версиями
(Новая страница: «== '''Description of the Situation''' == When a user needs to integrate text data from a remote source, provided that the source initiates the process, our capabilities allow this to be implemented without further adjustments. === '''Functionality Description''' === For each company, an RSS feed is created on the server application, which can be modified remotely. All client applications can update the RSS source, facilitating integration with external data.») |
FuzzyBot (обсуждение | вклад) (Обновление для соответствия новой версии исходной страницы.) |
||
Строка 3: | Строка 3: | ||
=== '''Functionality Description''' === | === '''Functionality Description''' === | ||
For each company, an RSS feed is created on the server application, which can be modified remotely. All client applications can update the RSS source, facilitating integration with external data. | For each company, an RSS feed is created on the server application, which can be modified remotely. All client applications can update the RSS source, facilitating integration with external data. | ||
== '''Setting Up and Remotely Modifying the RSS Feed''' == | |||
== ''' | {{Note|in this case, it refers to the setting up and remote modification of the RSS feed for companies by third-party applications.|warn}} | ||
{{Note| | To configure this functionality, a series of actions need to be performed: | ||
* Log in to the personal account and view the user company's ID. | |||
* | [[File:IP adress.png|thumb|right | Company IP address location|300px]] | ||
[[File:IP adress.png|thumb|right | | * Check whether the RSS feed is enabled on the server or not; to do this, enter the path in the browser<br> | ||
* | This can be done using a special command:<br> | ||
<code>https://rc-api.smartplayer.org/v2/company-rss/feed/${company_id}</code><br> | <code>https://rc-api.smartplayer.org/v2/company-rss/feed/${company_id}</code><br> | ||
'' | ''Example for a company with a specific ID:''<br> | ||
<code>https://rc-api.smartplayer.org/v2/company-rss/feed/8</code><br> | <code>https://rc-api.smartplayer.org/v2/company-rss/feed/8</code><br> | ||
If it looks like the screenshot, it means that the RSS feed needs to be enabled on the server. | |||
[[File: Ответ сервера.png|thumb|center | | [[File: Ответ сервера.png|thumb|center | Example of server response|500px]] | ||
* | *To enable the RSS feed on the server, the following actions need to be undertaken:<br> | ||
- | - Enable/disable this feature via the environment variable:<br> | ||
<code>COMPANY_RSS_ENABLED</code>.<br> | <code>COMPANY_RSS_ENABLED</code>.<br> | ||
If the variable value = 1 - enabled, in all other cases - disabled.<br> | |||
The default value is - disabled. After changing the settings, restart the server application. | |||
[[File:Нужная команда.png|thumb|center | | [[File:Нужная команда.png|thumb|center | Command location|500px]] | ||
* | * Wait for the server application to launch and repeat the operation described above, in item 2. The result should be a window: | ||
[[File:Статус по ответу.png|thumb|right | | [[File:Статус по ответу.png|thumb|right | Information on RSS launch|300px]] | ||
* | * For remote RSS updates, a POST request with parameters described at the following link needs to be executed:<br> | ||
[http://dev.smartplayer.org/api-page/pages/53 | [http://dev.smartplayer.org/api-page/pages/53 | ||
Post request with parameters]<br> | |||
[[File:Итоговый результат.png|thumb|right | | As a result, we will see data changes on the RSS for the company. | ||
* | [[File:Итоговый результат.png|thumb|right | РResult of all manipulations|300px]] | ||
* After this, the server setup is completed and by executing a remote request for RSS, any third-party application can modify data in its RSS feed.<br> | |||
Next, it is necessary to set up the broadcast, with content that will retrieve data from this remote source. |
Текущая версия от 14:53, 8 сентября 2023
Description of the Situation
When a user needs to integrate text data from a remote source, provided that the source initiates the process, our capabilities allow this to be implemented without further adjustments.
Functionality Description
For each company, an RSS feed is created on the server application, which can be modified remotely. All client applications can update the RSS source, facilitating integration with external data.
Setting Up and Remotely Modifying the RSS Feed
To configure this functionality, a series of actions need to be performed:
- Log in to the personal account and view the user company's ID.
- Check whether the RSS feed is enabled on the server or not; to do this, enter the path in the browser
This can be done using a special command:
https://rc-api.smartplayer.org/v2/company-rss/feed/${company_id}
Example for a company with a specific ID:
https://rc-api.smartplayer.org/v2/company-rss/feed/8
If it looks like the screenshot, it means that the RSS feed needs to be enabled on the server.
- To enable the RSS feed on the server, the following actions need to be undertaken:
- Enable/disable this feature via the environment variable:
COMPANY_RSS_ENABLED
.
If the variable value = 1 - enabled, in all other cases - disabled.
The default value is - disabled. After changing the settings, restart the server application.
- Wait for the server application to launch and repeat the operation described above, in item 2. The result should be a window:
- For remote RSS updates, a POST request with parameters described at the following link needs to be executed:
[http://dev.smartplayer.org/api-page/pages/53
Post request with parameters]
As a result, we will see data changes on the RSS for the company.
- After this, the server setup is completed and by executing a remote request for RSS, any third-party application can modify data in its RSS feed.
Next, it is necessary to set up the broadcast, with content that will retrieve data from this remote source.