1
0
Fork 0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2024-12-22 20:31:58 +03:00
rss-bridge/bridges/SteamGroupAnnouncementsBridge.php
Jisagi b9102d7e87
Add Steam Group Announcements Bridge ()
* Create SteamGroupAnnouncementsBridge.php

* Shorten implementation

Maybe this fixes the tests

* test

---------

Co-authored-by: Dag <me@dvikan.no>
2023-07-13 17:23:12 +02:00

25 lines
653 B
PHP

<?php
class SteamGroupAnnouncementsBridge extends FeedExpander
{
const MAINTAINER = 'Jisagi';
const NAME = 'Steam Group Announcements';
const URI = 'https://steamcommunity.com/';
const DESCRIPTION = 'Returns latest announcements from a steam group.';
const PARAMETERS = [
[
'g' => [
'name' => 'Group name',
'exampleValue' => 'freegamesfinders',
'required' => true
]
]
];
public function collectData()
{
$uri = self::URI . 'groups/' . $this->getInput('g') . '/rss';
$this->collectExpandableDatas($uri, 10);
}
}