4 :basic => "/search.json",
7 # Provides access to Twitter's Search API.
10 # # For keyword search
11 # iterator = @twitter.search(:q => "coworking")
12 # while (tweet = iterator.next)
16 # An <tt>ArgumentError</tt> will be raised if an invalid <tt>action</tt>
17 # is given. Valid actions are:
20 def search(options = {})
21 # raise ArgumentError, "Invalid messaging action: #{action}"
22 uri = @@SEARCH_URIS[:basic]
23 response = http_connect(nil, false, :search) {|conn| create_http_get_request(uri, options) }
24 json = JSON.parse(response.body)
25 bless_models(Twitter::Status.unmarshal(JSON.dump(json["results"])))