File: tweet_post.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 (29 lines) | stat: -rw-r--r-- 820 bytes parent folder | download
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/statuses.R
\name{tweet_post}
\alias{tweet_post}
\title{Post a tweet}
\usage{
tweet_post(text, ..., token = NULL)
}
\arguments{
\item{text}{Text of the tweet.}

\item{...}{Other accepted arguments.}

\item{token}{This endpoint accepts a OAuth2.0 authentication (can be
created via \code{\link[=rtweet_oauth2]{rtweet_oauth2()}}) or a bearer token (can be created via \code{\link[=rtweet_app]{rtweet_app()}}).}
}
\description{
This function uses the API v2 to post tweets.
}
\examples{
if (FALSE) {
 # It requires the Oauth2.0 Authentication
  tp_id <- tweet_post("Posting from #rtweet with the basic plan")
  tweet_post()
}
}
\references{
\url{https://developer.twitter.com/en/docs/twitter-api/tweets/manage-tweets/api-reference/post-tweets}
}