|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aetrion.flickr.tags.TagsInterface
public class TagsInterface
Interface for working with Flickr tags.
| Field Summary | |
|---|---|
static java.lang.String |
METHOD_GET_CLUSTER_PHOTOS
|
static java.lang.String |
METHOD_GET_CLUSTERS
|
static java.lang.String |
METHOD_GET_HOT_LIST
|
static java.lang.String |
METHOD_GET_LIST_PHOTO
|
static java.lang.String |
METHOD_GET_LIST_USER
|
static java.lang.String |
METHOD_GET_LIST_USER_POPULAR
|
static java.lang.String |
METHOD_GET_LIST_USER_RAW
|
static java.lang.String |
METHOD_GET_RELATED
|
static java.lang.String |
PERIOD_DAY
|
static java.lang.String |
PERIOD_WEEK
|
| Constructor Summary | |
|---|---|
TagsInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transportAPI)
Construct a TagsInterface. |
|
| Method Summary | |
|---|---|
PhotoList |
getClusterPhotos(java.lang.String tag,
java.lang.String clusterId)
Returns the first 24 photos for a given tag cluster. |
ClusterList |
getClusters(java.lang.String searchTag)
Search for tag-clusters. |
java.util.Collection |
getHotList(java.lang.String period,
int count)
Returns a list of hot tags for the given period. |
Photo |
getListPhoto(java.lang.String photoId)
Get a list of tags for the specified photo. |
java.util.Collection |
getListUser(java.lang.String userId)
Get a collection of tags used by the specified user. |
java.util.Collection |
getListUserPopular(java.lang.String userId)
Get a list of the user's popular tags. |
java.util.Collection |
getListUserRaw(java.lang.String tagVal)
Get a list of the user's (identified by token) popular tags. |
RelatedTagsList |
getRelated(java.lang.String tag)
Get the related tags. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String METHOD_GET_CLUSTERS
public static final java.lang.String METHOD_GET_HOT_LIST
public static final java.lang.String METHOD_GET_LIST_PHOTO
public static final java.lang.String METHOD_GET_LIST_USER
public static final java.lang.String METHOD_GET_LIST_USER_POPULAR
public static final java.lang.String METHOD_GET_LIST_USER_RAW
public static final java.lang.String METHOD_GET_RELATED
public static final java.lang.String METHOD_GET_CLUSTER_PHOTOS
public static final java.lang.String PERIOD_WEEK
public static final java.lang.String PERIOD_DAY
| Constructor Detail |
|---|
public TagsInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transportAPI)
apiKey - The API keytransportAPI - The Transport interface| Method Detail |
|---|
public ClusterList getClusters(java.lang.String searchTag)
throws java.io.IOException,
org.xml.sax.SAXException,
FlickrException
This method does not require authentication.
searchTag -
java.io.IOException
org.xml.sax.SAXException
FlickrException
public PhotoList getClusterPhotos(java.lang.String tag,
java.lang.String clusterId)
throws java.io.IOException,
org.xml.sax.SAXException,
FlickrException
This method does not require authentication.
tag - clusterId -
java.io.IOException
org.xml.sax.SAXException
FlickrException
public java.util.Collection getHotList(java.lang.String period,
int count)
throws java.io.IOException,
org.xml.sax.SAXException,
FlickrException
This method does not require authentication.
period - valid values are 'day' or 'week'count - maximum is 200
java.io.IOException
org.xml.sax.SAXException
FlickrException
public Photo getListPhoto(java.lang.String photoId)
throws java.io.IOException,
org.xml.sax.SAXException,
FlickrException
This method does not require authentication.
photoId - The photo ID
java.io.IOException
org.xml.sax.SAXException
FlickrException
public java.util.Collection getListUser(java.lang.String userId)
throws java.io.IOException,
org.xml.sax.SAXException,
FlickrException
This method does not require authentication.
userId - The User ID
java.io.IOException
org.xml.sax.SAXException
FlickrException
public java.util.Collection getListUserPopular(java.lang.String userId)
throws java.io.IOException,
org.xml.sax.SAXException,
FlickrException
This method does not require authentication.
userId - The user ID
java.io.IOException
org.xml.sax.SAXException
FlickrException
public java.util.Collection getListUserRaw(java.lang.String tagVal)
throws java.io.IOException,
org.xml.sax.SAXException,
FlickrException
This method does not require authentication.
tagVal - a tag to search for, or null
java.io.IOException
org.xml.sax.SAXException
FlickrException
public RelatedTagsList getRelated(java.lang.String tag)
throws java.io.IOException,
org.xml.sax.SAXException,
FlickrException
This method does not require authentication.
tag - The source tag
java.io.IOException
org.xml.sax.SAXException
FlickrException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||