public class AlbumsService extends Service
| Constructor and Description |
|---|
AlbumsService() |
| Modifier and Type | Method and Description |
|---|---|
static Request |
createAlbum(Album album)
Returns a new Request instance which, when submitted, creates a new
album in the current viewer's library.
|
static Request |
deleteAlbum(String albumId)
Returns a new Request instance which, when submitted, deletes an existing
album from the current viewer's library.
|
static Request |
getAlbum(String albumId)
Returns a new Request instance which, when submitted, fetches the
specified album and makes this data available as an Album object.
|
static Request |
getAlbums()
Returns a new Request instance which, when submitted, fetches the current
viewer's albums and makes this data available as a List of Album objects.
|
static Request |
updateAlbum(Album album)
Returns a new Request instance which, when submitted, updates an existing
album in the current viewer's library.
|
public static Request getAlbums()
Albumpublic static Request getAlbum(String albumId)
albumId - ID of album to fetchAlbumpublic static Request createAlbum(Album album)
album - Album object specifying the album parameters to pass into
the request; typically, caption and description are setpublic static Request updateAlbum(Album album) throws RequestException
album - Album object specifying the album parameters to pass into
the request; id must be set in order to specify which album
to update and values associated with any other property,
e.g. caption and description, are updatedRequestException - if the passed Album object does not have an id
property setCopyright © 2012. All Rights Reserved.