View source: R/browse_surveys.R
browse_surveys | R Documentation |
Get the list of the user's surveys.
browse_surveys( per_page = 100, page = NULL, sort_by = NULL, sort_order = NULL, start_modified_at = NULL, end_modified_at = NULL, title = NULL, include = NULL, folder_id = NULL, oauth_token = get_token() )
per_page |
Integer number to set the number of surveys to return per page. Maximum value is 1000 surveys per page; try that if your survey is not on the first 100, to reduce API calls. |
page |
Integer number to select which page of resources to return. By default is 1. |
sort_by |
String used to sort returned survey list: ‘title’, 'date_modified’, or 'num_responses’. By default, date_modified. |
sort_order |
String used to set the sort order for returned surveys: 'ASC’ or 'DESC’. By default, DESC. |
start_modified_at |
Date string used to select surveys last modified after this date. By default is NULL. |
end_modified_at |
Date string used to select surveys modified before this date. By default is NULL. |
title |
String used to select survey by survey title. By default is NULL. |
include |
Character vector as a comma separated string used to filter survey list:
'response_count’, 'date_created’, 'date_modified’, 'language’,
'question_count’, 'analyze_url’, 'preview’.
By default is NULL. Use |
folder_id |
Specify the id of a folder to only return surveys in it. |
oauth_token |
Your OAuth 2.0 token.
By default, retrieved from |
This function calls the SurveyMonkey API using the current oauth token and returns a list of surveys filtered by the parameters entered.
A list of objects of class sm_survey
.
SurveyMonkey API V3 at https://developer.surveymonkey.com/api/v3/#surveys
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.