Users mention when writing


#1

Hi all, I need to implement a users mention when you write a tweet (same as in twitter). My question is if I should use the endpoint users/search and pass to the query what the user type or if it can be done with a different endpoint.

Basically what I need to accomplish is when the user types @[term] perform a search in twitter and return users to show.

Thanks


#2

I guess users/search would probably be the best endpoint to specifically find users - bear in mind you only get back the first 1000 matches and need to follow rate limits. An alternative would be to find the following list for the authenticated user, cache that, and use it to populate your autocompletion prompt.