[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:
Pierre Mazière 2016-08-22 01:25:56 +02:00
parent 2f09ae56ad
commit f0e502ce37
79 changed files with 1381 additions and 2316 deletions

View file

@ -12,26 +12,14 @@ class PinterestBridge extends BridgeAbstract{
$this->uri = "http://www.pinterest.com";
$this->description = "Returns the newest images on a board";
$this->parameters["By username and board"] =
'[
{
"name" : "username",
"identifier" : "u"
},
{
"name" : "board",
"identifier" : "b"
$this->parameters["By username and board"] = array(
'u'=>array('name'=>'username'),
'b'=>array('name'=>'board')
);
}
]';
$this->parameters["From search"] =
'[
{
"name" : "Keyword",
"identifier" : "q"
}
]';
$this->parameters["From search"] = array(
'q'=>array('name'=>'Keyword')
);
}
public function collectData(array $param){