imguR (version 1.0.3)

account: Retrieve user account details

Description

Retrieve details of a user's account

Usage

account(account = 'me', ...)
account_verified(...)
send_verification(...)

Arguments

account
A username, by default the current user (if token is supplied). account_verified and send_verification require a token argument.
...
Other arguments passed to HTTP request functions, for example: token (an OAuth2.0 token) or key (an API key, used by default).

Value

“imgur_account”.

Details

account returns basic details of a user account. account_verified indicates whether one's user account has been email-verified. send_verification sends a verification email to the user's email account.

Examples

Run this code
## Not run: 
# # get account details for a user account
# account('thosjleeper')
# 
# # check account verification
# tkn <- imgur_login()
# if(!account_verified(token = tkn))
#     send_verification(token = tkn)
# account(token = tkn)
# ## End(Not run)

Run the code above in your browser using DataLab