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
It works 100% perfectly when tweets/search/recent, but as soon as I switch to tweets/search/all, it falls apart
Works:
const{ data }=awaitclient.get("tweets/search/recent",{query: "test"});
Does not work:
const{ data }=awaitclient.get("tweets/search/all",{query: "test",start_time: yesterday.toUTCString(),end_time: newDate().toUTCString()});
If it omit start_time and end_time, it gives:
Error: Unsupported Authentication: Authentication with OAuth 1.0a User Context is forbidden. Please, make the request with OAuth 2.0 Bearer Token authentication.
The text was updated successfully, but these errors were encountered:
Note that the tweets/search/all is only available to users who have been approved for the Academic Research product track. See twitter documentation for details.
I suspect you're seeing authentication errors because tweets/search/recent is available to every API user unlike the all corpus.
Unfortunately auth failures such as this one tend to be very cryptic.
It works 100% perfectly when
tweets/search/recent
, but as soon as I switch totweets/search/all
, it falls apartWorks:
Does not work:
If it omit
start_time
andend_time
, it gives:The text was updated successfully, but these errors were encountered: