Translations:Настройка RSS для компаний/2/en
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.