account: Retrieve user account details

Description Usage Arguments Details Value Author(s) Examples

View source: R/account.r

Description

Retrieve details of a user's account

Usage

1
2
3
4
5

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

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.

Value

An object of class “imgur_account”.

Author(s)

Thomas J. Leeper

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

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