Add new sorting option to API requests
A
Andy Matthews
I'd like to submit a feature request for your API; specifically the "Get all campaigns" endpoint, although anything that returns campaigns might benefit from it.
At the moment the /campaigns API endpoint returns a list of campaigns in date ascending order, which means the oldest campaign comes first. In my case I always want to look at the newest 4-8 campaigns so that I can pull analytics about opens and clicks. But in order to do that I'm having to retrieve dozens and dozens of campaigns that I don't care about. And as I send more and more campaigns, this request will not only take longer and longer, but will also tie up your servers and cause you to use more bandwidth.
I'd like to request that you consider adding a new
sort
option, that would allow users to return campaigns from newest to oldest. In my case that would make my request URL be:And would only return the 4 most recent sent campaigns. I did a mockup of what that API doc page might look like.