1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-20 10:00:46 +02:00
Files
OpenIntegrations/docs/en/examples/RSS/CreateFeedRSS.txt
T
Vitaly the Alpaca (bot) 874ba44321 Main build (Jenkins)
2026-03-07 13:42:19 +03:00

27 lines
1.2 KiB
Plaintext
Vendored

ChannelTitle = "Test RSS channel";
ChannelDescription = "Test RSS channel description";
ChannelLink = "https://example.com";
ItemsArray = New Array;
ElementStructure = OPI_RSS.GetFeedItemStructureRSS(True);
ElementStructure["title"] = "First element";
ElementStructure["description"] = "First element description";
ElementStructure["link"] = "https://example.com/item1";
ElementStructure["pubDate"] = OPI_Tools.GetCurrentDate();
ElementStructure["author"] = "test@example.com";
ElementStructure["guid"] = "item-1";
ItemsArray.Add(ElementStructure);
ElementStructure = OPI_RSS.GetFeedItemStructureRSS(True);
ElementStructure["title"] = "Second element";
ElementStructure["description"] = "Second element description";
ElementStructure["link"] = "https://example.com/item2";
ElementStructure["pubDate"] = OPI_Tools.GetCurrentDate();
ElementStructure["author"] = "test@example.com";
ElementStructure["guid"] = "item-2";
ItemsArray.Add(ElementStructure);
Result = OPI_RSS.CreateFeedRSS(ChannelTitle, ChannelDescription, ChannelLink, ItemsArray);