tweet_embed: Create a Tweet Embed

View source: R/tweet_embed.R

tweet_embedR Documentation

Create a Tweet Embed

Description

Twitter API GET call to retieve the tweet in embedded form.

Usage

tweet_embed(screen_name, status_id, ...)

Arguments

screen_name

character, screen name of the user

status_id

character, status id

...

parameters to pass to the GET call. See https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-oembed for details.

Value

character

See Also

httr::GET(),httr::content()

Examples

name   <- 'kearneymw'
status <- '1087047171306856451'

tweet_embed(screen_name = name, status_id = status)

tweet_embed(
 screen_name = name,
 status_id = status,
 hide_thread = TRUE, 
 hide_media = FALSE, 
 align = 'center'
)


rtweet documentation built on May 29, 2024, 7:47 a.m.