bs_new_list_item: Add a subject to a list

View source: R/record_list_item.R

bs_new_list_itemR Documentation

Add a subject to a list

Description

Add a subject to a list

Usage

bs_new_list_item(
  subject,
  uri,
  user = get_bluesky_user(),
  pass = get_bluesky_pass(),
  auth = bs_auth(user, pass),
  clean = TRUE
)

Arguments

subject

Character, length 1. Subject to act on, as a handle or did.

uri

Character, length 1. URI of the list to add the subject to.

user

Character. User name to log in with. Defaults to get_bluesky_user().

pass

Character. App password to log in with. Defaults to get_bluesky_pass().

auth

Authentication information. Defaults to bs_auth(user, pass).

clean

Logical. Should output be cleaned into a tibble? Default: TRUE.

Value

a tibble::tibble of list item information

Lexicon references

graph/listitem.json (2024-12-01) repo/createRecord.json (2023-11-25)

Function introduced

v0.2.0 (2024-12-01)

Examples


lst <- bs_new_list(name = 'test list listitem bskyr', purpose = 'curatelist')
bs_new_list_item(subject = 'chriskenny.bsky.social', uri = lst$uri)
# see the list item
bs_get_list(lst$uri)


bskyr documentation built on June 8, 2025, 10:33 a.m.