get_gallery: Get gallery

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

View source: R/get_gallery.r

Description

Get gallery details and metadata

Usage

1
2
get_gallery(section = 'hot', sort = 'viral', page = 0, 
            window = 'day', showViral = TRUE, ...)

Arguments

section

One of “hot” (the default), “top”, or “user”.

sort

One of “viral” (the default) or “time”.

page

A page number of results between 0 and 50.

window

If section == 'top', one of “day” (the default), “week”, “month”, “year”, or “all”.

showViral

If section == 'user', a logical indicating whether show viral images.

...

Other arguments passed to HTTP request functions, for example: token (an OAuth2.0 token) or key (an API key, used by default).

Details

Get gallery image details and metadata.

Value

An object of class “imgur_image”.

Author(s)

Thomas J. Leeper

See Also

search_gallery

get_gallery_image

get_random_images

Examples

1
2
3
4
5
6
## Not run: 
get_gallery()

get_gallery('top', window = 'week')

## End(Not run)

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