Module: Twitter::REST::Search
- Included in:
- API
- Defined in:
- lib/twitter/rest/search.rb
Overview
Methods for searching tweets
Constant Summary collapse
- MAX_TWEETS_PER_REQUEST =
Maximum tweets per request
100
Instance Method Summary collapse
-
#search(query, options = {}) ⇒ Twitter::SearchResults
Returns tweets that match a specified query.
Instance Method Details
#search(query, options = {}) ⇒ Twitter::SearchResults
Note:
Not all Tweets will be indexed or made available via the search interface.
Returns tweets that match a specified query
34 35 36 37 38 39 |
# File 'lib/twitter/rest/search.rb', line 34 def search(query, = {}) = .dup [:count] ||= MAX_TWEETS_PER_REQUEST request = Request.new(self, :get, "/1.1/search/tweets.json", .merge(q: query)) SearchResults.new(request) end |