flickr
<?php
/**
* Para usar base de URL's de imagens
* https://www.flickr.com/services/api/misc.urls.html
*/
require_once 'phpFlickr.php';
$apiKey = "7456ecdd1c7950f6830c725d812e3917";
$secret = "a573de945ab34fc5";
$user_id = "125483376@N04";
$f = new phpFlickr($apiKey, $secret, true);
$albuns = $f->photosets_getList($user_id);
$user = $f->people_getInfo($user_id);
echo '<h1>Fotos de ' . $user['realname']['_content'] . '</h1><br>';
if( isset( $albuns['photoset'] ) ){
foreach ($albuns['photoset'] as $key => $value) {
echo '<strong>Title</strong>: ' . $value['title']['_content'] . '<br>';
echo '<strong>ID Álbum</strong>: ' . $value['id'] . '<br>';
echo '<strong>URL: </strong>: ' . $user['photosurl']['_content'] . 'sets/' . $value['id'] . '<br>';
echo '{farm-id}: ' . $value['farm'] . '<br>';
echo '{server-id}: ' . $value['server'] . '<br>';
echo '{id}: ' . $value['primary'] . '<br>';
echo '{secret}: ' . $value['secret'] . '<br><br><br>';
}
}