R/print.R

Defines functions print.notion_response

Documented in print.notion_response

#' Print the result of a Notion API call
#'
#' @param x The result object.
#' @param ... Ignored.
#' @returns The JSON result.
#'
#' @importFrom jsonlite toJSON
#' @export
print.notion_response <- function(x, ...) {
  print(toJSON(unclass(x), pretty = TRUE, auto_unbox = TRUE))
}

Try the notionapi package in your browser

Any scripts or data that you put into this service are public.

notionapi documentation built on April 13, 2026, 9:07 a.m.