mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-19 06:42:14 +02:00
Last batch of bridges, all implemented !
Signed-off-by: teromene <teromene@teromene.fr>
This commit is contained in:
@@ -1,17 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* UnsplashBridge
|
||||
* Returns the latests photos from http://unsplash.com
|
||||
*
|
||||
* @name Unsplash Bridge
|
||||
* @homepage http://unsplash.com/
|
||||
* @description Returns the latests photos from Unsplash
|
||||
* @maintainer nel50n
|
||||
* @update 2015-03-02
|
||||
* @use1(m="max number of photos",w="width (1920, 1680, ...)",q="jpeg quality (0..100)")
|
||||
*/
|
||||
class UnsplashBridge extends BridgeAbstract {
|
||||
|
||||
public function loadMetadatas() {
|
||||
|
||||
$this->maintainer = "nel50n";
|
||||
$this->name = "Unsplash Bridge";
|
||||
$this->uri = "http://unsplash.com/";
|
||||
$this->description = "Returns the latests photos from Unsplash";
|
||||
$this->update = "2015-03-02";
|
||||
|
||||
$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"
|
||||
|
||||
}
|
||||
|
||||
]';
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
$html = '';
|
||||
$baseUri = 'http://unsplash.com';
|
||||
|
Reference in New Issue
Block a user