mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 02:24:35 +02:00
Last batch of bridges, all implemented !
Signed-off-by: teromene <teromene@teromene.fr>
This commit is contained in:
parent
715ad3bf3f
commit
78c9dcc705
60 changed files with 1678 additions and 604 deletions
|
@ -1,21 +1,34 @@
|
|||
<?php
|
||||
/**
|
||||
* RssBridgeGiphy
|
||||
* Based on https://github.com/mitsukarenai/twitterbridge-noapi
|
||||
* 2014-12-05
|
||||
*
|
||||
* @name Giphy Bridge
|
||||
* @homepage http://giphy.com/
|
||||
* @description Bridge for giphy.com
|
||||
* @maintainer kraoc
|
||||
* @use1(s="search tag")
|
||||
* @use2(n="max number of returned items")
|
||||
*/
|
||||
|
||||
define('GIPHY_LIMIT', 10);
|
||||
|
||||
class GiphyBridge extends BridgeAbstract{
|
||||
|
||||
public function loadMetadatas() {
|
||||
|
||||
$this->maintainer = "kraoc";
|
||||
$this->name = "Giphy Bridge";
|
||||
$this->uri = "http://giphy.com/";
|
||||
$this->description = "Bridge for giphy.com";
|
||||
$this->update = "2014-12-05";
|
||||
|
||||
$this->parameters["By tag"] =
|
||||
'[
|
||||
{
|
||||
"name" : "search tag",
|
||||
"identifier" : "s"
|
||||
}
|
||||
]';
|
||||
|
||||
$this->parameters["Without tag"] =
|
||||
'[
|
||||
{
|
||||
"name" : "max number of returned items",
|
||||
"type" : "number",
|
||||
"identifier" : "n"
|
||||
}
|
||||
]';
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
$html = '';
|
||||
$base_url = 'http://giphy.com';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue