Nothing
#' Get the Firebase API key
#'
#' Gets your Firebase API key from the env var `FIREBASE_API_KEY`. Make sure
#' you have defined this variable in your .Renviron file.
#'
#' @return String
#' @examples
#' \dontrun{
#' api_key()
#' }
#' @keywords internal
#' @noRd
api_key <- function() {
key <- Sys.getenv("FIREBASE_API_KEY")
if (key == "") {
stop(
"Firebase API key not found.",
" Please define `FIREBASE_API_KEY` in your .Renviron file.",
" Restart your R session afterwards.",
call. = FALSE
)
}
key
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.