View source: R/repo_create_record.R
bs_create_record | R Documentation |
Create a record in a repo
bs_create_record(
collection,
record,
user = get_bluesky_user(),
pass = get_bluesky_pass(),
auth = bs_auth(user, pass),
clean = TRUE
)
collection |
Character, length 1. The NSID of the record collection. |
record |
List, length 1. Description of a record. |
user |
Character. User name to log in with. Defaults to |
pass |
Character. App password to log in with. Defaults to |
auth |
Authentication information. Defaults to |
clean |
Logical. Should output be cleaned into a |
a tibble::tibble of record information
repo/createRecord.json (2023-11-25)
v0.1.0
(2023-11-25)
# get info about a record
post_rcd <- bs_get_record('https://bsky.app/profile/bskyr.bsky.social/post/3kf2577exva2x')
# create a record, to like the post
like <- list(
subject = list(
uri = post_rcd$uri,
cid = post_rcd$cid
),
createdAt = bs_created_at()
)
bs_create_record(collection = 'app.bsky.feed.like', record = like)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.