|
|||||||||
| 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_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,
Transport transport)
Construct a TagsInterface. |
|
| Method Summary | |
|---|---|
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_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 PERIOD_WEEK
public static final java.lang.String PERIOD_DAY
| Constructor Detail |
|---|
public TagsInterface(java.lang.String apiKey,
Transport transport)
apiKey - The API keytransport - The Transport interface| Method Detail |
|---|
public java.util.Collection getHotList(java.lang.String period,
int count)
throws java.io.IOException,
org.xml.sax.SAXException,
FlickrException
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
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
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
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
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
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 | ||||||||