get_theme_info {onemapsgapi} | R Documentation |
Get Theme Information
Description
This function is a wrapper for the Get Theme Info API. It returns a named character vector of Theme Name and Query Name.
Usage
get_theme_info(token, theme)
Arguments
token |
User's API token. This can be retrieved using |
theme |
Query name of theme. Themes’ query names can be retrieved using |
Value
A named character vector of Theme Name and Query Name. If an error occurred, the function throws an error with the status code and API's error message.
Examples
# returns named character vector
## Not run: get_theme_info(token, "kindergartens")
# throws an error with error message and status code
## Not run: get_theme_info(token, "invalid_theme")
# throws an error with error message and status code
## Not run: get_theme_info("invalid_token", "blood_bank")
[Package onemapsgapi version 2.0.0 Index]