Twitter API GET call to retieve the tweet in embedded form.
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.
Examples
name <- 'kearneymw'
status <- '1087047171306856451'
tweet_embed(screen_name = name, status_id = status)
#> [1] "<blockquote class=\"twitter-tweet\"><p lang=\"en\" dir=\"ltr\">Loving these <a href=\"https://twitter.com/hashtag/rstudioconf?src=hash&ref_src=twsrc%5Etfw\">#rstudioconf</a> photos! Thanks <a href=\"https://twitter.com/CMastication?ref_src=twsrc%5Etfw\">@CMastication</a> <a href=\"https://t.co/dGD0aMpt6L\">pic.twitter.com/dGD0aMpt6L</a></p>— Mike Kearney📊 (@kearneymw) <a href=\"https://twitter.com/kearneymw/status/1087047171306856451?ref_src=twsrc%5Etfw\">January 20, 2019</a></blockquote>\n<script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>\n"
tweet_embed(
screen_name = name,
status_id = status,
hide_thread = TRUE,
hide_media = FALSE,
align = 'center'
)
#> [1] "<blockquote class=\"twitter-tweet\" align=\"center\"><p lang=\"en\" dir=\"ltr\">Loving these <a href=\"https://twitter.com/hashtag/rstudioconf?src=hash&ref_src=twsrc%5Etfw\">#rstudioconf</a> photos! Thanks <a href=\"https://twitter.com/CMastication?ref_src=twsrc%5Etfw\">@CMastication</a> <a href=\"https://t.co/dGD0aMpt6L\">pic.twitter.com/dGD0aMpt6L</a></p>— Mike Kearney📊 (@kearneymw) <a href=\"https://twitter.com/kearneymw/status/1087047171306856451?ref_src=twsrc%5Etfw\">January 20, 2019</a></blockquote>\n<script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>\n"