Theme API functions
Usage
create_theme(
name,
api = NULL,
background_href = NULL,
background_layout = "fullscreen",
background_brightness = 0,
colors_answer = "#4FB0AE",
colors_background = "#FFFFFF",
colors_button = "#4FB0AE",
colors_question = "#3D3D3D",
font = "Source Sans Pro",
has_transparent_button = TRUE
)
get_theme(theme_id, api = NULL)
get_themes(api = NULL, page = 1, page_size = 10)
update_theme(
theme_id,
name,
api = NULL,
background_href = NULL,
background_layout = "fullscreen",
background_brightness = 0,
colors_answer = "#4FB0AE",
colors_background = "#FFFFFF",
colors_button = "#4FB0AE",
colors_question = "#3D3D3D",
font = "Source Sans Pro",
has_transparent_button = TRUE
)
delete_theme(theme_id, api = NULL)
Arguments
- name
See https://www.typeform.com/developers/create/reference/create-theme/
- api
Default
NULL
. Your private api key. Ifapi
isNULL
, the environment variableSys.getenv("typeform_api2")
is used.- background_href
See https://www.typeform.com/developers/create/reference/create-theme/
- background_layout
See https://www.typeform.com/developers/create/reference/create-theme/
- background_brightness
See https://www.typeform.com/developers/create/reference/create-theme/
- colors_answer
See https://www.typeform.com/developers/create/reference/create-theme/
- colors_background
See https://www.typeform.com/developers/create/reference/create-theme/
See https://www.typeform.com/developers/create/reference/create-theme/
- colors_question
See https://www.typeform.com/developers/create/reference/create-theme/
- font
See https://www.typeform.com/developers/create/reference/create-theme/
See https://www.typeform.com/developers/create/reference/create-theme/
- theme_id
The theme id
- page
The page of results to retrieve. Default 1 is the first page of results.
- page_size
Number of results to retrieve per page. Default is 10. Maximum is 200.