public class GroupsInterface
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
METHOD_BROWSE |
static java.lang.String |
METHOD_GET_ACTIVE_LIST |
static java.lang.String |
METHOD_GET_INFO |
static java.lang.String |
METHOD_JOIN |
static java.lang.String |
METHOD_JOIN_REQUEST |
static java.lang.String |
METHOD_LEAVE |
static java.lang.String |
METHOD_SEARCH |
| Constructor and Description |
|---|
GroupsInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transportAPI) |
| Modifier and Type | Method and Description |
|---|---|
Category |
browse(java.lang.String catId)
Deprecated.
Flickr returns just empty results
|
Group |
getInfo(java.lang.String groupId)
Get the info for a specified group.
|
void |
join(java.lang.String groupId,
java.lang.Boolean acceptRules)
Join a group as a public member.
|
void |
joinRequest(java.lang.String groupId,
java.lang.String message,
boolean acceptRules)
Request to join a group.
|
void |
leave(java.lang.String groupId,
java.lang.Boolean deletePhotos)
Leave a group.
|
java.util.Collection<Group> |
search(java.lang.String text,
int perPage,
int page)
Search for groups.
|
public static final java.lang.String METHOD_BROWSE
public static final java.lang.String METHOD_GET_ACTIVE_LIST
public static final java.lang.String METHOD_GET_INFO
public static final java.lang.String METHOD_SEARCH
public static final java.lang.String METHOD_JOIN
public static final java.lang.String METHOD_JOIN_REQUEST
public static final java.lang.String METHOD_LEAVE
public GroupsInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transportAPI)
public Category browse(java.lang.String catId) throws FlickrException
catId - The optional category id. Null value will be ignored.FlickrExceptionpublic Group getInfo(java.lang.String groupId) throws FlickrException
groupId - The group idFlickrExceptionpublic java.util.Collection<Group> search(java.lang.String text, int perPage, int page) throws FlickrException
text - The text to search for.perPage - Number of groups to return per page. If this argument is 0, it defaults to 100. The maximum allowed value is 500.page - The page of results to return. If this argument is 0, it defaults to 1.FlickrExceptionpublic void join(java.lang.String groupId,
java.lang.Boolean acceptRules)
throws FlickrException
groupId - - the id of the group to joinacceptRules - - if a group has rules, true indicates the user has accepted the rulesFlickrExceptionpublic void joinRequest(java.lang.String groupId,
java.lang.String message,
boolean acceptRules)
throws FlickrException
groupId - - groupId parametermessage - - (required) message to group administratoracceptRules - - (required) parameter indicating user has accepted groups rulesFlickrExceptionpublic void leave(java.lang.String groupId,
java.lang.Boolean deletePhotos)
throws FlickrException
groupId - - the id of the group to leavedeletePhotos - - delete photos by this user from groupFlickrException