PHP code example of jeroen-g / flickr

1. Go to this page and download the library: Download jeroen-g/flickr library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jeroen-g / flickr example snippets


// $key is your Flickr API key. $format is optional, it sets the Flickr response format.
$flickr = new JeroenG\Flickr\Flickr(new JeroenG\Flickr\Api($key, $format));

// https://www.flickr.com/services/api/flickr.test.echo.html
$echoTest = $flickr->echoThis('helloworld');

// https://www.flickr.com/services/api/flickr.photosets.getList.html
$photosets = $flickr->listSets($arrayOfParameters);

// Setting up other API requests. See https://www.flickr.com/services/api
$result = $flickr->request('flickr.method', $arrayOfParameters);

$echoTest = Flickr::echoThis('helloworld');