Learn R Programming

Rmonkey (version 0.2)

userdetails: Get User Details

Description

Once logged in, get basic details about the user account.

Usage

userdetails(api_key = getOption('sm_api_key'),
           oauth_token = getOption('sm_oauth_token'))

Arguments

api_key

Your API key. By default, retrieved from getOption('sm_api_key').

oauth_token

Your OAuth 2.0 token, as generated by smlogin. By default, retrieved from getOption('sm_oauth_token').

Value

An object of class sm_userdetails.

Details

This function retrieves basic details about a user. It can be used as a hello world test after smlogin.

References

https://developer.surveymonkey.com/mashery/get_user_details

Examples

Run this code
# NOT RUN {
smlogin()
userdetails()
# }

Run the code above in your browser using DataLab