Learn R Programming

rtoot (version 0.3.4)

post_status: Perform actions on a status

Description

Perform actions on a status

Usage

post_status(id, action = "favourite", token = NULL, verbose = TRUE)

Value

no return value, called for site effects

Arguments

id

character, status id to perform the action on

action

character, one of "(un)favourite","(un)reblog","(un)bookmark"

token

user bearer token (read from file by default)

verbose

logical whether to display messages

Examples

Run this code
if (FALSE) {
# favourite a status
post_status("xxxxxx", action = "favourite")
# unfavourite a status
post_status("xxxxxx", action = "unfavourite")
}

Run the code above in your browser using DataLab