public class TagsInterface
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
TagsInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transportAPI)
Construct a TagsInterface.
|
| Modifier and Type | Method and Description |
|---|---|
PhotoList<Photo> |
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<HotlistTag> |
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<Tag> |
getListUser(java.lang.String userId)
Get a collection of tags used by the specified user.
|
java.util.Collection<Tag> |
getListUserPopular(java.lang.String userId)
Get a list of the user's popular tags.
|
java.util.Collection<TagRaw> |
getListUserRaw()
Get a list of the user's (identified by token) popular tags.
|
java.util.Collection<TagRaw> |
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.
|
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
public TagsInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transportAPI)
apiKey - The API keytransportAPI - The Transport interfacepublic ClusterList getClusters(java.lang.String searchTag) throws FlickrException
This method does not require authentication.
searchTag - FlickrExceptionpublic PhotoList<Photo> getClusterPhotos(java.lang.String tag, java.lang.String clusterId) throws FlickrException
This method does not require authentication.
tag - clusterId - FlickrExceptionpublic java.util.Collection<HotlistTag> getHotList(java.lang.String period, int count) throws FlickrException
This method does not require authentication.
period - valid values are 'day' or 'week'count - maximum is 200FlickrExceptionpublic Photo getListPhoto(java.lang.String photoId) throws FlickrException
This method does not require authentication.
photoId - The photo IDFlickrExceptionpublic java.util.Collection<Tag> getListUser(java.lang.String userId) throws FlickrException
This method does not require authentication.
userId - The User IDFlickrExceptionpublic java.util.Collection<Tag> getListUserPopular(java.lang.String userId) throws FlickrException
This method does not require authentication.
userId - The user IDFlickrExceptionpublic java.util.Collection<TagRaw> getListUserRaw() throws FlickrException
This method does not require authentication.
FlickrExceptionpublic java.util.Collection<TagRaw> getListUserRaw(java.lang.String tagVal) throws FlickrException
This method does not require authentication.
tagVal - a tag to search for (optional)FlickrExceptionpublic RelatedTagsList getRelated(java.lang.String tag) throws FlickrException
This method does not require authentication.
tag - The source tagFlickrException