|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ListMethods
Method Summary | |
---|---|
UserList |
createUserList(java.lang.String listName,
boolean isPublicList,
java.lang.String description)
Creates a new list for the authenticated user. |
UserList |
destroyUserList(int listId)
Deletes the specified list. |
PagableResponseList<UserList> |
getUserListMemberships(java.lang.String listOwnerScreenName,
long cursor)
List the lists the specified user has been added to. |
PagableResponseList<UserList> |
getUserLists(java.lang.String listOwnerScreenName,
long cursor)
List the lists of the specified user. |
ResponseList<Status> |
getUserListStatuses(java.lang.String listOwnerScreenName,
int id,
Paging paging)
Show tweet timeline for members of the specified list. |
PagableResponseList<UserList> |
getUserListSubscriptions(java.lang.String listOwnerScreenName,
long cursor)
List the lists the specified user follows. |
UserList |
showUserList(java.lang.String listOwnerScreenName,
int id)
Show the specified list. |
UserList |
updateUserList(int listId,
java.lang.String newListName,
boolean isPublicList,
java.lang.String newDescription)
Updates the specified list. |
Method Detail |
---|
UserList createUserList(java.lang.String listName, boolean isPublicList, java.lang.String description) throws TwitterException
listName
- The name of the list you are creating. Required.isPublicList
- set true if you wish to make a public listdescription
- The description of the list you are creating. Optional.
TwitterException
- when Twitter service or network is unavailable, or the authenticated user already has 20 lists(TwitterException.getStatusCode() == 403).UserList updateUserList(int listId, java.lang.String newListName, boolean isPublicList, java.lang.String newDescription) throws TwitterException
listId
- The id of the list to update.newListName
- What you'd like to change the list's name to.isPublicList
- Whether your list is public or private. Optional. Values can be public or private. Lists are public by default if no mode is specified.newDescription
- What you'd like to change the list description to.
TwitterException
- when Twitter service or network is unavailablePagableResponseList<UserList> getUserLists(java.lang.String listOwnerScreenName, long cursor) throws TwitterException
listOwnerScreenName
- The screen name of the list ownercursor
- Breaks the results into pages. A single page contains 20 lists. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
TwitterException
- when Twitter service or network is unavailableUserList showUserList(java.lang.String listOwnerScreenName, int id) throws TwitterException
listOwnerScreenName
- The screen name of the list ownerid
- The id of the list to show
TwitterException
- when Twitter service or network is unavailableUserList destroyUserList(int listId) throws TwitterException
listId
- The id of the list to delete
TwitterException
- when Twitter service or network is unavailableResponseList<Status> getUserListStatuses(java.lang.String listOwnerScreenName, int id, Paging paging) throws TwitterException
listOwnerScreenName
- The screen name of the list ownerid
- The id of the list to deletepaging
- controls pagination. Supports since_id, max_id, count and page parameters.
TwitterException
- when Twitter service or network is unavailablePagableResponseList<UserList> getUserListMemberships(java.lang.String listOwnerScreenName, long cursor) throws TwitterException
listOwnerScreenName
- The screen name of the list ownercursor
- Breaks the results into pages. A single page contains 20 lists. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
TwitterException
- when Twitter service or network is unavailablePagableResponseList<UserList> getUserListSubscriptions(java.lang.String listOwnerScreenName, long cursor) throws TwitterException
listOwnerScreenName
- The screen name of the list ownercursor
- Breaks the results into pages. A single page contains 20 lists. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
TwitterException
- when Twitter service or network is unavailable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |