R/qual_create_survey.R

Defines functions qual_create_survey

qual_create_survey <- function(name = "My new Survey", headers){
  survey <- httr::VERB("POST",
                       paste0(base_url, "API/v3/survey-definitions"),
                       add_headers(headers),
                       body = list(SurveyName= "My New Survey",
                                   Language= "EN",
                                   ProjectCategory= "CORE"),
                       encode = "json")
  return(survey)
}
essentialols/fbsamplR documentation built on Dec. 20, 2021, 6:39 a.m.