Learn R Programming

imguR (version 1.0.3)

account_images: 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).

Value

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

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.

Examples

Run this code
## Not run: 
# account_images('thosjleeper')
# ## End(Not run)

Run the code above in your browser using DataLab