Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for querying multiple blasts #47

Open
stefan-pdx opened this issue Jun 19, 2014 · 1 comment
Open

Add support for querying multiple blasts #47

stefan-pdx opened this issue Jun 19, 2014 · 1 comment
Labels

Comments

@stefan-pdx
Copy link

Currently, the gem only supports pulling blast info for a given blast_id. It would be nice to support a get_blasts method (or something similarly named), which returns a list of blasts given a date range per the API spec (start_date, end_date).

I currently get around this by using:

# Get a list of blasts sent out yesterday
options = {
  status:      :sent,
  start_date:  (Date.today-1).strftime("%D"),
  end_date:    (Date.today-1).strftime("%D")
}

client.api_get(:blast, options)
@jcrivera
Copy link
Contributor

@slnovak - We'd like to create some kind of get_blasts method that will get blasts that meet criteria given in an options hash - maybe not specific to date ranges, but could be used for that. I'm concerned about a proliferation of get methods for every type of search option param. We will discuss a solution to this and would also welcome your help on a pull-request. We'll be in touch with details. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants