com.aetrion.flickr.panda
Class PandaInterface

java.lang.Object
  extended by com.aetrion.flickr.panda.PandaInterface

public class PandaInterface
extends java.lang.Object

Flickr Panda.

Version:
$Id: PandaInterface.java,v 1.3 2009/07/11 20:30:27 x-mago Exp $
Author:
mago
See Also:
Flickr Panda

Constructor Summary
PandaInterface(java.lang.String apiKey, java.lang.String sharedSecret, Transport transportAPI)
           
 
Method Summary
 java.util.ArrayList getList()
          Return a list of Flickr pandas, from whom you can request photos using the getPhotos(Panda, Set, int, int) API method.
 PhotoList getPhotos(Panda panda, java.util.Set extras, int perPage, int page)
          Ask the Flickr Pandas for a list of recent public (and "safe") photos.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PandaInterface

public PandaInterface(java.lang.String apiKey,
                      java.lang.String sharedSecret,
                      Transport transportAPI)
Method Detail

getList

public java.util.ArrayList getList()
                            throws FlickrException,
                                   java.io.IOException,
                                   org.xml.sax.SAXException
Return a list of Flickr pandas, from whom you can request photos using the getPhotos(Panda, Set, int, int) API method. This method does not require authentication.

Returns:
A list of pandas
Throws:
FlickrException
java.io.IOException
org.xml.sax.SAXException

getPhotos

public PhotoList getPhotos(Panda panda,
                           java.util.Set extras,
                           int perPage,
                           int page)
                    throws FlickrException,
                           java.io.IOException,
                           org.xml.sax.SAXException
Ask the Flickr Pandas for a list of recent public (and "safe") photos. This method does not require authentication.

Parameters:
panda - The panda to ask for photos from.
extras - A set of Strings controlling the extra information to fetch for each returned record. Extras.ALL_EXTRAS
perPage - The number of photos to show per page
page - The page offset
Returns:
A PhotoList
Throws:
FlickrException
java.io.IOException
org.xml.sax.SAXException
See Also:
Extras


Copyright (C) 2005-2008 Aetrion LLC. All Rights Reserved.