Get the list of the user's survey
surveylist(page = NULL, page_size = NULL,
start_date = NULL, end_date = NULL,
title = NULL, recipient_email = NULL,
order_asc = NULL, fields = NULL,
api_key = getOption('sm_api_key'),
oauth_token = getOption('sm_oauth_token'))A number indicating which page of results to return.
The number of results to return per API call. Default is 1000.
A start datetime to restrict result to. Any returned surveys must have been created on or after this datetime. Required format is YYYY-MM-DD HH:MM:SS, implicitly in UTC; if argument is of class POSIXct, formatting is handled automatically.
An end datetime to restrict result to. Any returned surveys must have been created strictly before this datetime. Required format is YYYY-MM-DD HH:MM:SS, implicitly in UTC; if argument is of class POSIXct, formatting is handled automatically.
A character string containing the title of a survey to search for.
A character string containing an email adddress. Only surveys sent to this email will be returned.
A boolean indicating whether results should be sorted in ascending or descending (the default) order.
A character vector containing the names of fields to return in each sm_collector class object. See Details.
Your API key. By default, retrieved from getOption('sm_api_key').
Your OAuth 2.0 token, as generated by smlogin. By default, retrieved from getOption('sm_oauth_token').
A list of objects of class sm_survey.
Retrieves the list of surveys available to the user.
The fields argument accepts one or more of the following values: title, analysis_url, preview_url, date_created, date_modified, language_id, question_count, num_responses.
# NOT RUN {
smlogin()
surveylist()
# }
Run the code above in your browser using DataLab