imguR (version 1.0.3)

account_settings: Retrieve and modify account settings

Description

Retrieve and modify account settings

Usage

account_settings(bio = NULL, public_images = NULL, messaging_enabled = NULL, album_privacy = NULL, accepted_gallery_terms = NULL, ...)

Arguments

bio
The biography of user, which is displayed in the gallery profile page.
public_images
A logical indicating whether images public by default.
messaging_enabled
A logical indicating whether private messages are allowed.
album_privacy
The default privacy for albums. One of “public”, “hidden”, or “secret”.
accepted_gallery_terms
A logical indicating whether the user agrees to the Imgur gallery terms.
...
Other arguments passed to HTTP request functions, for example: token (an OAuth2.0 token), which is required.

Value

“imgur_account_settings”, otherwise an object of “imgur_basic”.

Details

If none of the named arguments (other than token) are specified, this retrieves settings of the account. If any of the named arguments are specified, those parameters are modified.

Examples

Run this code
## Not run: 
# tkn <- imgur_login()
# 
# # retrieve settings
# account_settings(token = tkn)
# 
# # set albums to default to public
# account_settings(album_privacy = 'public', token = tkn)
# ## End(Not run)

Run the code above in your browser using DataCamp Workspace