View source: R/get_theme_status.R
get_theme_status | R Documentation |
This function is a wrapper for the Check Theme Status API. It returns a named logical indicating if the theme is updated at a specific date.
get_theme_status(
token,
theme,
date = Sys.Date(),
time = format(Sys.time(), format = "%T")
)
token |
User's API token. This can be retrieved using |
theme |
Query name of theme. Themes’ query names can be retrieved using |
date |
Default = current date. Date to check for updates. Format YYYY-MM-DD |
time |
Default = current time. Time to check for updates. Format: HH:MM:SS:FFFZ |
A named logical indicating if the theme is updated at a specific date. If an error occurred, the function throws an error with the status code and API's error message.
# returns named logical
## Not run: get_theme_status(token, "kindergartens")
## Not run: get_theme_status(token, "hotels", "2020-01-01", "12:00:00")
# throws an error with error message and status code
## Not run: get_theme_status("invalid_token", "blood_bank")
# throws an error with error message and status code
## Not run: get_theme_status(token, "invalid_theme")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.