Description Usage Arguments Details Value Author(s) See Also Examples
Update album metadata
1 2 3 |
album |
An album ID or object of class “imgur_album”. If no |
id |
A vector of one or more image IDs to add to the album or a list of objects of class “imgur_image”. |
title |
Optionally, an album title. |
description |
Optionally, an album description. |
privacy |
The privacy for the album. One of “public”, “hidden”, or “secret”. |
layout |
The layout for the album. One of “blog”, “grid”, “horizontal”, or “vertical”.) |
cover_id |
An image ID or an object of class “imgur_image”. |
... |
Other arguments passed to HTTP request functions, for example: |
Updates the images or metadata of an album. All options are are optional. To anonymously update an album, album
must be the deletehash value from create_album
.
An object of class “imgur_basic”.
Thomas J. Leeper
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ## Not run:
# update using a deletehash, anonymously
i <- imgur()
hist(rnorm(20))
img <- imgur_off(i)
a1 <-
create_album(id = img,
title = 'My first Imgur album',
description = 'A simple album',
privacy = 'hidden',
layout = 'grid',
cover_id = img)
update_album(a1$deletehash, title = 'My second Imgur album')
# update using an OAuth token
tkn <- imgur_login()
a2 <-
create_album(id = img,
title = 'My first Imgur album',
description = 'A simple album',
privacy = 'hidden',
layout = 'grid',
cover_id = img,
token = tkn)
update_album(a2, title = 'My second Imgur album')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.