get_poll: View a poll

View source: R/timelines_statuses.R

get_pollR Documentation

View a poll

Description

View a polls attached to statuses. To discover poll ID, you will need to use get_status() and look into the poll.

Usage

get_poll(id, instance = NULL, token = NULL, anonymous = FALSE, parse = TRUE)

Arguments

id

character, ID of the poll in the database

instance

character, the server name of the instance where the status is located. If NULL, the same instance used to obtain the token is used.

token

user bearer token (read from file by default)

anonymous

some API calls do not need a token. Setting anonymous to TRUE allows to make an anonymous call if possible.

parse

logical, if TRUE, the default, returns a tibble. Use FALSE to return the "raw" list corresponding to the JSON returned from the Mastodon API.

Value

a poll

Examples

## Not run: 
get_poll(id = "105976")

## End(Not run)

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