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)
Examples
if (FALSE) { # has_bluesky_pass() && has_bluesky_user()
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)
}