Learn R Programming

Rmonkey (version 0.2)

surveydetails: Get survey details

Description

Get details about a specific survey

Usage

surveydetails(survey, api_key = getOption('sm_api_key'),
              oauth_token = getOption('sm_oauth_token'))

Arguments

survey

A Survey Monkey survey ID number (or an object of class “sm_survey” from which it can be extracted), possibly returned by surveylist.

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

A list of objects of class sm_survey.

Details

Retrieves details of a specified survey (e.g., question metadata). Surveys with over 200 survey pages will not be returned. Surveys with over 200 questions will not be returned.

References

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

Examples

Run this code
# NOT RUN {
smlogin()
s <- surveylist()
surveydetails(s[[1]]$survey_id)
# }

Run the code above in your browser using DataLab