diff --git a/R/utils-check.R b/R/utils-check.R index d200f83..0984ac9 100644 --- a/R/utils-check.R +++ b/R/utils-check.R @@ -19,11 +19,8 @@ check_params <- function(x, call = rlang::caller_env()) { keys <- np[grep("key", np)] cli::cli_abort(c( "Prevented filter {.arg keys} from being included in the request URL.", - "i" = "It is highly recommended that you run {.fun mm_authorize}, - and {.emph do not} supply {.arg .key}.", - "i" = "A typo like `kee = ` will end up in the request URL as - a filter." - )) + "i" = "Use environment variables for credentials instead." + )) } if (any(startsWith(np, "."))) { diff --git a/R/utils.R b/R/utils.R index f12380f..b7cdb6f 100644 --- a/R/utils.R +++ b/R/utils.R @@ -9,7 +9,6 @@ remove_api_urls <- function(.data) { # Error on absent MEGAMATION env vars cred_error <- function(x) { cli::cli_abort(c( - "No {.envvar MEGAMATION_{toupper(x)}} found.", - "i" = "Did you run {.fun mm_authorize}?" + "No {.envvar MEGAMATION_{toupper(x)}} found." )) } diff --git a/_pkgdown.yml b/_pkgdown.yml index b5a43fa..3bc3bdb 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -11,11 +11,6 @@ reference: - mm_get_criteria - mm_get_schema - mm_get_labels - - title: "Authorization" - desc: > - Install credentials for automatic use - contents: - - mm_authorize - title: "Programming around the Megamation API" desc: > Low-level functions used internally and made available for programming diff --git a/api.megamation.com/uw/joe/status-b4ea5e.R b/api.megamation.com/uw/joe/status-b4ea5e.R deleted file mode 100644 index 59cdfe5..0000000 --- a/api.megamation.com/uw/joe/status-b4ea5e.R +++ /dev/null @@ -1,19 +0,0 @@ -structure(list(method = "GET", url = "https://api.megamation.com/uw/joe/status?ALLFIELDS=1", - status_code = 404L, headers = structure(list(`Content-Type` = "text/html", - Server = "REDACTED", `X-Powered-By` = "REDACTED", Date = "REDACTED", - `Set-Cookie` = "REDACTED", `Strict-Transport-Security` = "REDACTED", - `Transfer-Encoding` = "chunked"), class = "httr2_headers"), - body = charToRaw("\r\n\r\n\r\n\r\n404 - File or directory not found.\r\n\r\n\r\n\r\n

Server Error

\r\n
\r\n
\r\n

404 - File or directory not found.

\r\n

The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

\r\n
\r\n
\r\n\r\n\r\n"), - request = structure(list(url = "https://api.megamation.com/uw/joe/status?ALLFIELDS=1", - method = NULL, headers = structure(list(Authorization = "REDACTED"), redact = "Authorization"), - body = NULL, fields = list(), options = list(useragent = "megamation (https://github.com/asadow/megamation)"), - policies = list(error_body = function (resp) - { - if (!httr2::resp_has_body(resp)) { - return("No response body.") - } - purrr::pluck(httr2::resp_body_json(resp), "detail") - }, cache_path = "C:\\Users\\asadow\\AppData\\Local\\Temp\\RtmpU9e4rU", - cache_use_on_error = FALSE, cache_debug = TRUE, cache_max = list( - age = Inf, n = Inf, size = 1073741824))), class = "httr2_request"), - cache = new.env(parent = emptyenv())), class = "httr2_response")