Translations:Настройка RSS для компаний/2/en

Материал из SmartPlayer
Версия от 14:51, 8 сентября 2023; N.Bloshkin (обсуждение | вклад) (Новая страница: «== '''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}} 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. thumb|right | Company IP address location|300px * Check whether the RSS feed is enabled on the server...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Setting Up and Remotely Modifying the RSS Feed

in this case, it refers to the setting up and remote modification of the RSS feed for companies by third-party applications.

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.
Company IP address location
  • 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.

Example of server response
  • 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.

Command location
  • Wait for the server application to launch and repeat the operation described above, in item 2. The result should be a window:
Information on RSS launch
  • 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.

РResult of all manipulations
  • 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.