Login   Register  
PHP Classes
elePHPant
Icontem

File: Services/flickr.example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Leonardo Branco Shinagawa  >  Feedee  >  Services/flickr.example  >  Download  
File: Services/flickr.example
Role: Example script
Content type: text/plain
Description: Flickr Example
Class: Feedee
Retrieve and parse RSS feed from remote sites
Author: By
Last change:
Date: 3 years ago
Size: 631 bytes
 

Contents

Class file image Download
<?php

/* EXAMPLE 1 */

$flickr = new Feedee('flickr');
$flickr->setUser('75062593@N00'); //if you want the user photostream, just setup setUser()
$flickr->setSet('72157625631991185'); // if you want a Set of some user, you need to setup setSet() too

foreach ($flickr as $photo)
{
    echo 
$photo->title '<img src="'.$photo->medium.'" />';
}


//ATTRIBUTES FOR BOTH TYPE, USER PHOTOSTREAM OR USER SET
$photo->title;
$photo->link;
$photo->small//for small photo
$photo->medium//for medium
$photo->big//for big
$photo->original//for original size

/* Depending on how you uploaded the photo, some size wont be available */