public class CollectionsInterface
extends java.lang.Object
| Constructor and Description |
|---|
CollectionsInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transportAPI) |
| Modifier and Type | Method and Description |
|---|---|
Collection |
getInfo(java.lang.String collectionId)
Retrieves info on the given Flickr
Collection (of Photosets). |
java.util.List<Collection> |
getTree(java.lang.String collectionId,
java.lang.String userId)
Retrieves a list of the current Commons institutions.
|
public CollectionsInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transportAPI)
public Collection getInfo(java.lang.String collectionId) throws FlickrException
Collection (of Photosets).
This method requires authentication.collectionId - the id of the collection (from the getTree call, not from the collection URL).FlickrExceptionpublic java.util.List<Collection> getTree(java.lang.String collectionId, java.lang.String userId) throws FlickrException
collectionId - the id of the collection (optional - returns all if not specified).userId - the user id of the collection owner (optional - defaults to calling user).FlickrException