inst/plumber/test/05_test_session_by_cookie.R

# # GET /session-by-cookie
res <- httr::GET(
  url = paste0(url, "/session-by-cookie"),
  httr::authenticate(
    user = secret_key,
    password = ""
  ),
  query = list(
    # TODO: create example cookie with session for testing
    hashed_cookie = ""
  )
)

dat <- jsonlite::fromJSON(
  httr::content(res, "text", encoding = "UTF-8")
)
Tychobra/polishedapi documentation built on July 19, 2020, 11:41 p.m.