Raj
Raj

Reputation: 22926

How to perform users search using twitter ruby gem

How to perform this call using the twitter gem?

I tried:

client.search('sachin')

but that returns Twitter::SearchResults which contains only tweets.

Upvotes: 3

Views: 1535

Answers (1)

O-I
O-I

Reputation: 1575

Use Twitter::REST::Users#user_search

So, using your example, client.user_search('sachin').

Upvotes: 6

Related Questions