| authenticate | R Documentation |
Add an authentication slot to a query. That slot is then used by later
code to determine whether to add an OAuth workflow. It is triggered
automatically within capture() if the authenticate argument
of galah_config() is set to TRUE, but only for occurrence queries
to the Atlas of Living Australia.
.
authenticate(.data, cache_disk = FALSE)
.data |
An object of class |
cache_disk |
(logical) Should JWT tokens be cached to disk? Defaults
to |
An object of the same class as supplied, but with an added
authenticate slot.
## Not run:
# use `galah_config()` to set for all occurrence queries
galah_config(authenticate = TRUE)
x <- galah_call() |>
identify("Wollemia nobilis") |>
collect()
# use in-pipe for more control
x <- galah_call() |>
identify("Wollemia nobilis") |>
authenticate() |>
collect()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.