This repository has been archived by the owner on Jun 30, 2023. It is now read-only.
[FR] <title>Status Code 401 #336
shahdnizar
started this conversation in
General
Replies: 1 comment 1 reply
-
@shahdnizar You can't use your API1.1 bearer token (rtweet) for this package. https://cran.r-project.org/web/packages/academictwitteR/vignettes/academictwitteR-auth.html |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the solution you'd like
I keep getting 401 error when trying to use the function get_all_tweets: "Error in make_query(url = endpoint_url, params = params, bearer_token = bearer_token, : something went wrong. Status code: 401". I have checked my credentials and they worked fine with the rtweet package. What might be wrong?. Here is my code:
tweets <-
get_all_tweets(
query = "#BLM",
start_tweets = "2020-01-01T00:00:00Z",
end_tweets = "2020-01-05T00:00:00Z",
bearer_token = get_bearer(),
data_path = "data/",
n = 1000,
)
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions