create_new_option_list: Create a new option list

Description Usage Arguments Value Examples

View source: R/option_lists.R

Description

Sends a request to the iFormBuilder API to create a new option list. The new option list will be created with the name you supply.

Usage

1
create_new_option_list(server_name, profile_id, option_list_name, access_token)

Arguments

server_name

String of the iFormBuilder server name

profile_id

Integer of the iFormBuilder profile ID

option_list_name

A character name for the new option list

access_token

Access token produced by get_iform_access_token

Value

The id of the new option list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
# Get access_token
access_token <- get_iform_access_token(
  server_name = "your_server_name",
  client_key_name = "your_client_key_name",
  client_secret_name = "your_client_secret_name")

# Create a new empty option list
new_option_list_id <- create_new_option_list(
  server_name = "your_server_name",
  profile_id = 123456,
  option_list_name = "SGS-Streams",
  access_token = access_token)

# Inspect new option list id
option_list_id
# If successful, result should look something like:
# [1] 4423966

## End(Not run)

arestrom/iformr documentation built on Nov. 25, 2021, 11:21 p.m.