View source: R/suso_api_Interviews.R
suso_getAllInterviewQuestionnaire | R Documentation |
Returns all interviews for the specified questionnaire and the selected status.
suso_getAllInterviewQuestionnaire(
server = suso_get_api_key("susoServer"),
apiUser = suso_get_api_key("susoUser"),
apiPass = suso_get_api_key("susoPass"),
workspace = NULL,
token = NULL,
questID = "",
version = 1,
workStatus = "Completed"
)
server |
Survey Solutions server address |
apiUser |
Survey Solutions API user |
apiPass |
Survey Solutions API password |
workspace |
server workspace, if nothing provided, defaults to primary |
token |
If Survey Solutions server token is provided apiUser and apiPass will be ignored |
questID |
your Survey Solutions QuestionnaireId. Retrieve a list of questionnaires by executing |
version |
version of the questionnaire |
workStatus |
define which statuses the file should inlude (i.e. Restored,Created,SupervisorAssigned,InterviewerAssigned, RejectedBySupervisor,ReadyForInterview, SentToCapi,Restarted,Completed,ApprovedBySupervisor, RejectedByHeadquarters,ApprovedByHeadquarters,Deleted), if NULL only completed interviews will be shown. |
ATTENTION: This function will soon be switched to the GraphQL endpoint, since the REST API is already deprecated.
## Not run:
To get all interviews for a specific questionnaire and a specific status
suso_getAllInterviewQuestionnaire(
workspace = "myworkspace",
questID = "dee7705f-d611-4b12-9b97-2b8e5b80c4ea",
version = 1,
workStatus = "InterviewerAssigned"
)
# or to get all interviews in status completed
suso_getAllInterviewQuestionnaire(
workspace = "myworkspace",
questID = "dee7705f-d611-4b12-9b97-2b8e5b80c4ea",
version = 1
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.