Method: Mandrill::Messages#search
- Defined in:
- lib/mandrill/api.rb
#search(query = '*', date_from = nil, date_to = nil, tags = nil, senders = nil, api_keys = nil, limit = 100) ⇒ Array
Search recently sent messages and optionally narrow by date range, tags, senders, and API keys. If no date range is specified, results within the last 7 days are returned. This method may be called up to 20 times per minute. If you need the data more often, you can use <a href=“/api/docs/messages.html#method=info”>/messages/info.json</a> to get the information for a single message, or <a href=“help.mandrill.com/entries/21738186-Introduction-to-Webhooks”>webhooks</a> to push activity to your own application for querying.
964 965 966 967 |
# File 'lib/mandrill/api.rb', line 964 def search(query='*', date_from=nil, date_to=nil, =nil, senders=nil, api_keys=nil, limit=100) _params = {:query => query, :date_from => date_from, :date_to => date_to, :tags => , :senders => senders, :api_keys => api_keys, :limit => limit} return @master.call 'messages/search', _params end |