R/auto_app_bsky_bookmark.R

Defines functions app_bsky_bookmark_get_bookmarks app_bsky_bookmark_delete_bookmark app_bsky_bookmark_create_bookmark

#' app_bsky_bookmark_create_bookmark
#' Creates a private bookmark for the specified record. Currently, only `app.bsky.feed.post` records are supported. Requires authentication.
#' @noRd
app_bsky_bookmark_create_bookmark <- function(
  uri,
  cid,
  .token = NULL,
  .return = c("json", "resp")
) {
  make_request(
    name = "bsky.social/xrpc/app.bsky.bookmark.createBookmark",
    params = as.list(match.call())[-1] |>
      purrr::imap(
        ~ {
          eval(.x, envir = parent.frame())
        }
      ),
    req_method = "POST"
  )
}


#' app_bsky_bookmark_delete_bookmark
#' Deletes a private bookmark for the specified record. Currently, only `app.bsky.feed.post` records are supported. Requires authentication.
#' @noRd
app_bsky_bookmark_delete_bookmark <- function(
  uri,
  .token = NULL,
  .return = c("json", "resp")
) {
  make_request(
    name = "bsky.social/xrpc/app.bsky.bookmark.deleteBookmark",
    params = as.list(match.call())[-1] |>
      purrr::imap(
        ~ {
          eval(.x, envir = parent.frame())
        }
      ),
    req_method = "POST"
  )
}


#' app_bsky_bookmark_get_bookmarks
#' Gets views of records bookmarked by the authenticated user. Requires authentication.
#' @noRd
app_bsky_bookmark_get_bookmarks <- function(
  limit = NULL,
  cursor = NULL,
  .token = NULL,
  .return = c("json", "resp")
) {
  make_request(
    name = "bsky.social/xrpc/app.bsky.bookmark.getBookmarks",
    params = as.list(match.call())[-1] |>
      purrr::imap(
        ~ {
          eval(.x, envir = parent.frame())
        }
      ),
    req_method = "GET"
  )
}

Try the atrrr package in your browser

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

atrrr documentation built on June 7, 2026, 1:06 a.m.