These are lower-level functions for direct access to API actions. They may be
useful in programming or when higher-level package functions are not
available. qget
and qpost
are wrappers for request
.
request(verb = "GET", action = NULL, key = Sys.getenv("QUALTRICS_KEY"), subdomain = Sys.getenv("QUALTRICS_SUBDOMAIN"), api_url = NULL, verbose = FALSE, ...) qget(action = NULL, as = "parsed", key = Sys.getenv("QUALTRICS_KEY"), subdomain = Sys.getenv("QUALTRICS_SUBDOMAIN"), ...) qpost(action = NULL, as = "parsed", key = Sys.getenv("QUALTRICS_KEY"), subdomain = Sys.getenv("QUALTRICS_SUBDOMAIN"), ...)
verb | Name of verb to use. |
---|---|
action | An API action (like |
key | A Qualtrics API key (by default, the value of the environment
variable |
subdomain | A Qualtrics subdomain (by default, the value of the
environment variable |
api_url | A complete API URL. If used, argument |
verbose | Output API calls to |
... | |
as | Desired type of content. See content. |
For request
, a response
object. For
qget
and qpost
, its content as extracted by
content
.
For help with subdomains, see the Qualtrics documentation. Each Qualtrics account is assigned a subdomain, and using another will work but produce a warning.