powered by
Get response counts for a survey collector
responsecounts(collector, api_key = getOption('sm_api_key'), oauth_token = getOption('sm_oauth_token'))
A collector ID number (or an object of class “sm_collector” from which it can be extracted), possibly returned by collectors.
collectors
Your API key. By default, retrieved from getOption('sm_api_key').
getOption('sm_api_key')
Your OAuth 2.0 token, as generated by smlogin. By default, retrieved from getOption('sm_oauth_token').
smlogin
getOption('sm_oauth_token')
A list containing response counts.
Retrieves number of (started and completed) responses for a specified survey collector.
https://developer.surveymonkey.com/mashery/get_response_counts
# NOT RUN { smlogin() s <- surveylist() lapply(collectors(s[[1]]$survey_id), function(x) responsecounts(x$collector_id)) # }
Run the code above in your browser using DataLab