create_album: Create album

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/create_album.r

Description

Create an album

Usage

1
2
3
create_album(id = NULL,
             title = NULL, description = NULL,
             privacy = NULL, layout = NULL, cover_id = NULL, ...)

Arguments

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: token (an OAuth2.0 token) or key (an API key, used by default).

Details

Creates an Imgur album with the specified images and metadata. All options are are optional. Images can only be added to anonymous albums with create_album, not after the fact. Albums created with an OAuth2.0 authentication token can be modified in any way.

Value

An object of class “imgur_basic”.

Author(s)

Thomas J. Leeper

See Also

update_album

add_album_images

remove_album_images

set_album_images

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
i <- imgur()
hist(rnorm(20))
img <- imgur_off(i)
create_album(id = img,
             title = 'My first Imgur album',
             description = 'A simple album',
             privacy = 'hidden',
             layout = 'grid',
             cover_id = img)

## End(Not run)

imguR documentation built on May 2, 2019, 4:02 p.m.