I've created an app on Twitter and obtained my API key and secret API key and gone through the steps to create a token in rstudio. Everything seems like it works and I have a token loaded in my environment, yet when I try to use the search_tweets() function I get an error that my token is invalid or expired. What am I missing?
token1 <- create_token(
app = "gov_1005_proj",
consumer_key = api_key,
consumer_secret = api_secret_key)
Warning: 89 - Invalid or expired token.
data frame with 0 columns and 0 rows
Warning message:
Invalid or expired token.