Get responses for a SurveyMonkey survey
get_responses(
id,
page = 1,
all_pages = TRUE,
per_page = 100,
start_created_at = NULL,
end_created_at = NULL,
start_modified_at = NULL,
end_modified_at = NULL,
sort_order = "DESC",
sort_by = "date_modified",
oauth_token = get_token()
)
The survey's ID, can be found with browse_survey()
.
Integer number to select which page of resources to return. By default is 1.
return all pages of respondents? Default is TRUE, which will fetch all responses (and cause n/100 calls to the API).
Integer number to set the number of surveys to return per page. By default, is 100 surveys per page (appears to be the maximum allowed by the API).
Date string used to select surveys created after this date. By default is NULL.
Date string used to select surveys modified before this date. By default is NULL.
Date string used to select surveys last modified after this date. By default is NULL.
Date string used to select surveys modified before this date. By default is NULL.
String used to set the sort order for returned surveys: 'ASC’ or 'DESC’. By default, DESC.
String value of field used to sort returned survey list: ‘title’, 'date_modified’, or 'num_responses’. By default, date_modified.
Your OAuth 2.0 token.
By default, retrieved from get_token()
.
A list of object of class sm_response
SurveyMonkey API V3 at https://developer.surveymonkey.com/api/v3/#survey-responses