View source: R/submission_list.R
submission_list | R Documentation |
submission_list(
pid = get_default_pid(),
fid = get_default_fid(),
url = get_default_url(),
un = get_default_un(),
pw = get_default_pw(),
retries = get_retries(),
orders = get_default_orders(),
tz = get_default_tz()
)
pid |
The numeric ID of the project, e.g.: 2. Default: Set default See |
fid |
The alphanumeric form ID, e.g. "build_Spotlighting-0-8_1559885147". Default: Set default See |
url |
The ODK Central base URL without trailing slash. Default: Set default See |
un |
The ODK Central username (an email address).
Default: |
pw |
The ODK Central password.
Default: |
retries |
The number of attempts to retrieve a web resource. This parameter is given to Default: 3. |
orders |
(vector of character) Orders of datetime elements for lubridate. Default:
|
tz |
A timezone to convert dates and times to. Read |
A tibble containing some high-level details of the form submissions. One row per submission, columns are submission attributes:
* instance_id: uuid, string. The unique ID for each submission. * submitter_id: user ID, integer. * created_at: time of submission upload, dttm * updated_at: time of submission update on server, dttm or NA
https://docs.getodk.org/central-api-submission-management/#listing-all-submissions-on-a-form
Other submission-management:
attachment_list()
,
encryption_key_list()
,
submission_audit_get()
,
submission_detail()
,
submission_export()
,
submission_get()
## Not run:
# Set default credentials, see vignette("setup")
ruODK::ru_setup(
svc = ...,
un = "me@email.com",
pw = "..."
)
sl <- submission_list()
sl %>% knitr::kable(.)
fl <- form_list()
# submission_list returns a tibble
class(sl)
# > c("tbl_df", "tbl", "data.frame")
# Submission attributes are the tibble's columns
names(sl)
# > "instance_id" "submitter_id" "device_id" "created_at" "updated_at"
# Number of submissions (rows) is same as advertised in form_list
form_list_nsub <- fl %>%
filter(fid == get_test_fid()) %>%
magrittr::extract2("submissions") %>%
as.numeric()
nrow(sl) == form_list_nsub
# > TRUE
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.