NAME
Imgur::API::Endpoint::Album
DESCRIPTION
Access to the imgur Album API Endpoint.
See: https://api.imgur.com/endpoints/album
METHODS
get
Get information about a specific album.
Parameters
album
requiredAlbum
images
Return all of the images in the album
Parameters
album
requiredAlbum
image
Get information about an image in an album, any additional actions found in Image Endpoint will also work.
Parameters
album
requiredAlbum
image
requiredImage
upload
Create a new album. Optional parameter of ids[] is an array of image ids to add to the album. array of image ids to add to the album. If uploading anonymous images to anonymous album please use the optional parameter of deletehashes[] rather than ids[]. Note: including the optional deletehashes[] parameter will also work for authenticated user albums. There is no need to duplicate image ids with their corresponding deletehash. This method is available without authenticating an account, and may be used merely by sending "Authorization: Client-ID {client_id}" in the request headers. Doing so will create an anonymous album which is not tied to an account.
Parameters
layout
optionalSets the layout to display the album. Values are : blog | grid | horizontal | vertical
privacy
optionalSets the privacy level of the album. Values are : public | hidden | secret. Defaults to user's privacy settings for logged in users.
deletehashes[]
optionalThe deletehashes of the images that you want to be included in the album.
ids[]
optionalThe image ids that you want to be included in the album.
cover
optionalThe ID of an image that you want to be the cover of the album
description
optionalThe description of the album
title
optionalThe title of the album
update
Update the information of an album. For anonymous albums, {album} should be the deletehash that is returned at creation. If uploading anonymous images to anonymous album please use the optional parameter of deletehashes[] rather than ids[]. Note: including the optional deletehashes[] parameter will also work for authenticated user albums. There is no need to duplicate image ids with their corresponding deletehash.
Parameters
ids[]
optionalThe image ids that you want to be included in the album.
cover
optionalThe ID of an image that you want to be the cover of the album
title
optionalThe title of the album
description
optionalThe description of the album
layout
optionalSets the layout to display the album. Values are : blog | grid | horizontal | vertical
album
requiredAlbum
privacy
optionalSets the privacy level of the album. Values are : public | hidden | secret
deletehashes[]
optionalThe deletehashes of the images that you want to be included in the album.
delete
Delete an album with a given ID. You are required to be logged in as the user to delete the album. For anonymous albums, {album} should be the deletehash that is returned at creation.
Parameters
album
requiredAlbum
favorite
Favorite an album with a given ID. The user is required to be logged in to favorite the album.
Parameters
album
requiredAlbum
setTo
Sets the images for an album, removes all other images and only uses the images in this request. For anonymous albums, {album} should be the deletehash that is returned at creation. If uploading anonymous images to anonymous album please use the optional parameter of deletehashes[] rather than ids[]. Note: including the optional deletehashes[] parameter will also work for authenticated user albums. There is no need to duplicate image ids with their corresponding deletehash.
Parameters
ids[]
optionalThe image ids that you want to be added to the album. The [] represents the ability to use this variable as an array.
album
requiredAlbum
deletehashes[]
optionalThe image deletehashes that you want to be added to the album. The [] represents the ability to use this variable as an array.
addTo
For anonymous albums, {album} should be the deletehash that is returned at creation. If uploading anonymous images to anonymous album please use the optional parameter of deletehashes[] rather than ids[]. Note: including the optional deletehashes[] parameter will also work for authenticated user albums. There is no need to duplicate image ids with their corresponding deletehash.
Parameters
deletehashes[]
optionalThe image deletehashes that you want to be added to the album. The [] represents the ability to use this variable as an array.
ids[]
optionalThe image ids that you want to be added to the album. The [] represents the ability to use this variable as an array.
album
requiredAlbum
removeFrom
Takes parameter, ids[], as an array of ids and removes from the album. For anonymous albums, {album} should be the deletehash that is returned at creation.
Parameters
album
requiredAlbum
ids[]
requiredThe image ids that you want to be removed from the album.
19 POD Errors
The following errors were encountered while parsing the POD:
- Around line 21:
'=item' outside of any '=over'
- Around line 28:
You forgot a '=back' before '=head2'
- Around line 34:
'=item' outside of any '=over'
- Around line 41:
You forgot a '=back' before '=head2'
- Around line 47:
'=item' outside of any '=over'
- Around line 59:
You forgot a '=back' before '=head2'
- Around line 65:
'=item' outside of any '=over'
- Around line 102:
You forgot a '=back' before '=head2'
- Around line 108:
'=item' outside of any '=over'
- Around line 150:
You forgot a '=back' before '=head2'
- Around line 156:
'=item' outside of any '=over'
- Around line 163:
You forgot a '=back' before '=head2'
- Around line 169:
'=item' outside of any '=over'
- Around line 176:
You forgot a '=back' before '=head2'
- Around line 182:
'=item' outside of any '=over'
- Around line 199:
You forgot a '=back' before '=head2'
- Around line 205:
'=item' outside of any '=over'
- Around line 222:
You forgot a '=back' before '=head2'
- Around line 228:
'=item' outside of any '=over'
=over without closing =back