Browse Source

api-key docs

master
boB Rudis 4 years ago
parent
commit
d542fe5e46
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 7
      R/api-key.R
  2. 4
      man/attackerkb_api_key.Rd

7
R/api-key.R

@ -5,9 +5,12 @@
#' The easiest way to accomplish this is to set it
#' in the `.Renviron` file in your home directory.
#'
#' You can obtain an AttackerKB API key by going visiting
#' **AttackerKB Profile Page > Settings > API Key.**
#'
#' @md
#' @param force Force setting a new AttackerKB key for the current environment?
#' @return atomic character vector containing the AttackerKB api key
#' @return atomic character vector containing the AttackerKB API key
#' @export
attackerkb_api_key <- function(force = FALSE) {
@ -19,7 +22,7 @@ attackerkb_api_key <- function(force = FALSE) {
call. = FALSE)
}
message("Couldn't find env var ATTACKERKB_API_KEY See ?ATTACKERKB_API_KEY for more details.")
message("Couldn't find env var ATTACKERKB_API_KEY See ?attackerkb_api_key for more details.")
message("Please enter your API key:")
pat <- readline(": ")

4
man/attackerkb_api_key.Rd

@ -18,3 +18,7 @@ key residing in the environment variable \code{ATTACKERKB_API_KEY}.
The easiest way to accomplish this is to set it
in the \code{.Renviron} file in your home directory.
}
\details{
You can obtain an AttackerKB API key by going visiting
\strong{AttackerKB Profile Page > Settings > API Key.}
}

Loading…
Cancel
Save