File: tweet_embed.Rd

package info (click to toggle)
r-cran-rtweet 2.0.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,068 kB
  • sloc: sh: 13; makefile: 2
file content (41 lines) | stat: -rw-r--r-- 931 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tweet_embed.R
\name{tweet_embed}
\alias{tweet_embed}
\title{Create a Tweet Embed}
\usage{
tweet_embed(screen_name, status_id, ...)
}
\arguments{
\item{screen_name}{character, screen name of the user}

\item{status_id}{character, status id}

\item{...}{parameters to pass to the GET call. See
\url{https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-oembed}
for details.}
}
\value{
character
}
\description{
Twitter API GET call to retieve the tweet in embedded form.
}
\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'
)

}
\seealso{
\code{\link[httr:GET]{httr::GET()}},\code{\link[httr:content]{httr::content()}}
}