Learn R Programming

rtoot (version 0.3.6)

post_thread: Post a thread

Description

Create a thread of your messages.

Usage

post_thread(
  status = c("my first rtoot #rstats", "my first thread with rtoot"),
  token = NULL,
  sensitive = FALSE,
  spoiler_text = NULL,
  visibility = "public",
  scheduled_at = NULL,
  language = NULL,
  verbose = TRUE
)

Value

A character vector with the ids of the toots posted.

Arguments

status

character, toot status. Must be 500 characters or less.

token

user bearer token (read from file by default)

sensitive

logical, mark status and attached media as sensitive?

spoiler_text

character, text to be shown as a warning or subject before the actual content. Statuses are generally collapsed behind this field.

visibility

character, Visibility of the posted status. One of public (default), unlisted, private, direct.

scheduled_at

ISO 8601 Datetime at which to schedule a status. Must be at least 5 minutes in the future.

language

ISO 639 language code for this status.

verbose

logical whether to display messages

Examples

Run this code
if (FALSE) {
pt <- post_thread(visibility = "direct")
}

Run the code above in your browser using DataLab