Setting up RSS for companies

Материал из SmartPlayer
Это перевод страницы Настройка RSS для компаний, он готов на 100%.

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

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.