directus_get_ | R Documentation |
low level function to get data from directus
directus_get_(
endpoint,
parse = TRUE,
token = Sys.getenv("DIRECTUS_TOKEN"),
api_base = "https://cms.correlaid.org/",
limit = -1,
query = list()
)
endpoint |
character. REST endpoint to get. Refer to the API reference. |
parse |
boolean. whether or not to parse the result. defaults to true. |
token |
character. API token for Directus, defaults to environment variable DIRECTUS_TOKEN. |
api_base |
character. API base URL. defaults to https://cms.correlaid.org. |
limit |
integer. how many objects to return. defaults to -1 meaning all objects. |
query |
list. list of optional global query parameters. |
httr return object if parse = FALSE
. parsed content of httr result if parse = TRUE
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.