account_images {imguR}R Documentation

Retrieve user images

Description

Retrieve details of a user's images

Usage

account_images(account = 'me', page = NULL, ids = TRUE, ...)

account_image_count(account = 'me', ...)

Arguments

account

A username, by default the current user (if token is supplied).

page

Optionally, a page of results to return.

ids

A logical indicating whether to only return image IDs.

...

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

Details

account_images retrieves details of a user's images. By default (and if a token argument is supplied), the current user's images are returned. Specifying another username is also possible with or without a token. account_image_count returns just the number of images, which is useful for handling pagination of the results.

Value

For account_images, an object of class “imgur_image”. For account_image_count, a number.

Author(s)

Thomas J. Leeper

Examples

## Not run: 
account_images('thosjleeper')

## End(Not run)

[Package imguR version 1.0.3 Index]