mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 10:04:54 +02:00
[bridges] migrate all bridges to an array based definition of parameters
see github issue 356 Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
2f09ae56ad
commit
f0e502ce37
79 changed files with 1381 additions and 2316 deletions
|
@ -10,22 +10,16 @@ class GiphyBridge extends BridgeAbstract{
|
|||
$this->uri = "http://giphy.com/";
|
||||
$this->description = "Bridge for giphy.com";
|
||||
|
||||
$this->parameters["By tag"] =
|
||||
'[
|
||||
{
|
||||
"name" : "search tag",
|
||||
"identifier" : "s"
|
||||
}
|
||||
]';
|
||||
$this->parameters["By tag"] = array(
|
||||
's'=>array('name'=>'search tag')
|
||||
);
|
||||
|
||||
$this->parameters["Without tag"] =
|
||||
'[
|
||||
{
|
||||
"name" : "max number of returned items",
|
||||
"type" : "number",
|
||||
"identifier" : "n"
|
||||
}
|
||||
]';
|
||||
$this->parameters["Without tag"] = array(
|
||||
'n'=>array(
|
||||
'name'=>'max number of returned items',
|
||||
'type'=>'number'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue