inst/doc/rtoot.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library("rtoot")

## ----aut, eval=FALSE----------------------------------------------------------
#  auth_setup()

## ----eval = FALSE-------------------------------------------------------------
#  get_instance_general(instance = "mastodon.social")

## ----eval = FALSE-------------------------------------------------------------
#  get_instance_activity(instance = "mastodon.social")
#  get_instance_trends(instance = "mastodon.social")

## ----eval = FALSE-------------------------------------------------------------
#  get_timeline_public(instance = "mastodon.social")

## ----eval = FALSE-------------------------------------------------------------
#  get_timeline_hashtag(hashtag = "rstats", instance = "mastodon.social")

## ----eval = FALSE-------------------------------------------------------------
#  get_timeline_home()

## ----eval=FALSE---------------------------------------------------------------
#  search_accounts("schochastics")

## ----eval = FALSE-------------------------------------------------------------
#  id <- "109302436954721982"
#  get_account_followers(id)
#  get_account_following(id)
#  get_account_statuses(id)

## ----eval = FALSE-------------------------------------------------------------
#  post_toot(status = "my first rtoot #rstats")

## ----eval = FALSE-------------------------------------------------------------
#  post_toot(status = "my first rtoot #rstats", media="path/to/media",
#            alt_text = "description of media")

Try the rtoot package in your browser

Any scripts or data that you put into this service are public.

rtoot documentation built on May 29, 2024, 2:14 a.m.