ushahidi / SwiftRiver-API

An API for external (third party) applications to post and consume data to/from SwiftRiver.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Date parameters on Trend search not working

dan-king opened this issue · comments

Specifying "since" and "until" values in a trend request returns records outside the range.

For example the following request returns results from May 24:

/rivers/31/trends/tags?count=500&since=2013-05-30&until=2013-05-31

The response when using "since" and "until" is always the same whether including the parameters or not (i.e. the response includes the entire set of drops, even those outside the range)

Problem solved: user error. I was passing the request string as a URL parameter to the API. The "&" delimited was thus getting interpreted as a delimiter for my custom API handler. I fixed it by using a different delimiter and swapping it out when I made the actual request.

Sorry for the false alarm.