Hi!
I'm getting some unexpected results from the API. For instance if I combine daterange with multiple channels I get zero results in some cases, but not all. It seems inconsistent and intermittent.
For instance the following call gives no results: http://api.amp.active.com/search?v=xml&l=60067&m=meta:startDate:dateRange:today..+meta:channel=Running+OR+meta:channel=Triathlon&api_key=wuhmn9ye94xn3xnteudxsavw
If I rearrange the parameters (swap Triathlon and Running): http://api.amp.active.com/search?v=xml&l=60067&m=meta:startDate:dateRange:today..+meta:channel=Triathlon+OR+meta:channel=Running&api_key=wuhmn9ye94xn3xnteudxsavw
If I combine these channels with a third (e.g. "Swimming") I can't get any results at all.
http://api.amp.active.com/search?v=xml&l=60067&m=meta:startDate:dateRange:today..+meta:channel=Swimming+OR+meta:channel=Running+OR+meta:channel=Triathlon&api_key=wuhmn9ye94xn3xnteudxsavw
Is there a set limit of how many channels, or a particular order the parameters have to be specified?
Message edited by Kjetil Samuelsen 13 years ago
Kjetil Samuelsen – 13 years ago
After further investigation I found that using "today" instead of a date causes problem. The following call works fine:
http://api.amp.active.com/search?v=xml&l=60067&m=meta:startDate:dateRange:2011-08-31..+meta:channel=Swimming+OR+meta:channel=Running+OR+meta:channel=Triathlon&api_key=wuhmn9ye94xn3xnteudxsavw
active Admin – 13 years ago
Sorry about the delayed response. This looks like a bug in our system that we'll have to fix. I'm glad you found a work around.
Please sign in to add a post.
Hi!
I'm getting some unexpected results from the API. For instance if I combine daterange with multiple channels I get zero results in some cases, but not all. It seems inconsistent and intermittent.
For instance the following call gives no results: http://api.amp.active.com/search?v=xml&l=60067&m=meta:startDate:dateRange:today..+meta:channel=Running+OR+meta:channel=Triathlon&api_key=wuhmn9ye94xn3xnteudxsavw
If I rearrange the parameters (swap Triathlon and Running): http://api.amp.active.com/search?v=xml&l=60067&m=meta:startDate:dateRange:today..+meta:channel=Triathlon+OR+meta:channel=Running&api_key=wuhmn9ye94xn3xnteudxsavw
If I combine these channels with a third (e.g. "Swimming") I can't get any results at all.
http://api.amp.active.com/search?v=xml&l=60067&m=meta:startDate:dateRange:today..+meta:channel=Swimming+OR+meta:channel=Running+OR+meta:channel=Triathlon&api_key=wuhmn9ye94xn3xnteudxsavw
Is there a set limit of how many channels, or a particular order the parameters have to be specified?
Message edited by Kjetil Samuelsen 13 years ago
Kjetil Samuelsen – 13 years ago
After further investigation I found that using "today" instead of a date causes problem. The following call works fine:
http://api.amp.active.com/search?v=xml&l=60067&m=meta:startDate:dateRange:2011-08-31..+meta:channel=Swimming+OR+meta:channel=Running+OR+meta:channel=Triathlon&api_key=wuhmn9ye94xn3xnteudxsavw
active Admin – 13 years ago
Sorry about the delayed response. This looks like a bug in our system that we'll have to fix. I'm glad you found a work around.