Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

search_tweets() provides a warning if the token is invalid or expired but lookup_statuses() does not #334

Closed
jrosen48 opened this issue Jun 9, 2019 · 1 comment

Comments

@jrosen48
Copy link

jrosen48 commented Jun 9, 2019

Hi @mkearney, and thanks for a research life-changing piece of software.

search_tweets() seems to provide a warning if the token is invalid or expired, but lookup_statuses() does not. Is this intended--or, should both show a warning?

library(rtweet)

rt <- search_tweets(
  "#rstats", n = 100, include_rts = FALSE
)
#> Warning: 89 - Invalid or expired token.
#> Warning: Invalid or expired token.

rt
#> data frame with 0 columns and 0 rows

statuses <- c(
  "567053242429734913",
  "266031293945503744",
  "440322224407314432"
)

tw <- lookup_statuses(statuses)
tw
#> data frame with 0 columns and 0 rows

Created on 2019-06-09 by the reprex package (v0.2.1)

@hadley
Copy link
Collaborator

hadley commented Feb 27, 2021

Now tracking in #483

@hadley hadley closed this as completed Feb 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants