mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 20:21:14 +03:00
Add Steam Group Announcements Bridge (#3527)
* Create SteamGroupAnnouncementsBridge.php * Shorten implementation Maybe this fixes the tests * test --------- Co-authored-by: Dag <me@dvikan.no>
This commit is contained in:
parent
0f2b55fbef
commit
b9102d7e87
1 changed files with 25 additions and 0 deletions
25
bridges/SteamGroupAnnouncementsBridge.php
Normal file
25
bridges/SteamGroupAnnouncementsBridge.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?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);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue