You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.
Looking at the examples of post_tweet, I see that if the first initial tweet is successful it will report the id.
Expected behavior
I think it would be useful to provide a simple function to extract it so that the creation of threads wouldn't require a call to the Twitter API for each reply:
Reproduce the problem
# From post_tweet# example of replying within a thread## first postr<- post_tweet(status="first in a thread")
# Simple function (httr is already a dependency)id_post<-function(x){httr::content(x)$id_str}
reply_id<- id_post(r)
## post reply
post_tweet("second in the thread",
in_reply_to_status_id=reply_id)
This approach substitute the following lines from the example:
## lookup status_idmy_timeline<- get_timeline(rtweet:::home_user())
## ID for replyreply_id<-my_timeline$status_id[1]
Problem
Looking at the examples of
post_tweet
, I see that if the first initial tweet is successful it will report the id.Expected behavior
I think it would be useful to provide a simple function to extract it so that the creation of threads wouldn't require a call to the Twitter API for each reply:
Reproduce the problem
This approach substitute the following lines from the example:
rtweet version
Session info
## copy/paste output sessionInfo()
Token
The text was updated successfully, but these errors were encountered: