Class "UserSearch" not found #32
Unanswered
williamsdb
asked this question in
Q&A
Replies: 1 comment
-
In the current version (>=3.0.0), UserSearch became \Noweh\TwitterApi\UserLookup. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to get the number of followers associated with a user. For this, I am calling findByIdOrUsername but the UserSearch::MODES['USERNAME'] part throws an error saying that UserSearch doesn't exist. What am I doing wrong please?
EDIT: If I remove that part of the code which seems possible as the code seems to work it out for itself then I get this error returned:
Client error: GET https://api.twitter.com/2/users/by/username/williamsdbf1?user.fields=description resulted in a 401 Unauthorized response: { "title": "Unauthorized", "type": "about:blank", "status": 401, "detail": "Unauthorized" }
Beta Was this translation helpful? Give feedback.
All reactions