mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 18:14:44 +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
|
@ -8,26 +8,20 @@ class UnsplashBridge extends BridgeAbstract {
|
|||
$this->uri = "http://unsplash.com/";
|
||||
$this->description = "Returns the latests photos from Unsplash";
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Max number of photos",
|
||||
"identifier" : "m",
|
||||
"type" : "number"
|
||||
},
|
||||
{
|
||||
"name" : "Width",
|
||||
"identifier" : "w",
|
||||
"exampleValue" : "1920, 1680, ..."
|
||||
},
|
||||
{
|
||||
"name" : "JPEG quality",
|
||||
"identifier" : "q",
|
||||
"type" : "number"
|
||||
|
||||
}
|
||||
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'm'=>array(
|
||||
'name'=>'Max number of photos',
|
||||
'type'=>'number'
|
||||
),
|
||||
'w'=>array(
|
||||
'name'=>'Width',
|
||||
'exampleValue'=>'1920, 1680, …'
|
||||
),
|
||||
'q'=>array(
|
||||
'name'=>'JPEG quality',
|
||||
'type'=>'number'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue