Skip to content

Commit b9102d7

Browse files
Jisagidvikan
andauthored
Add Steam Group Announcements Bridge (#3527)
* Create SteamGroupAnnouncementsBridge.php * Shorten implementation Maybe this fixes the tests * test --------- Co-authored-by: Dag <[email protected]>
1 parent 0f2b55f commit b9102d7

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
class SteamGroupAnnouncementsBridge extends FeedExpander
4+
{
5+
const MAINTAINER = 'Jisagi';
6+
const NAME = 'Steam Group Announcements';
7+
const URI = 'https://steamcommunity.com/';
8+
const DESCRIPTION = 'Returns latest announcements from a steam group.';
9+
10+
const PARAMETERS = [
11+
[
12+
'g' => [
13+
'name' => 'Group name',
14+
'exampleValue' => 'freegamesfinders',
15+
'required' => true
16+
]
17+
]
18+
];
19+
20+
public function collectData()
21+
{
22+
$uri = self::URI . 'groups/' . $this->getInput('g') . '/rss';
23+
$this->collectExpandableDatas($uri, 10);
24+
}
25+
}

0 commit comments

Comments
 (0)