Type
Bug
Status
Closed
Reported By
Alex Mora
Component
API
Resolution
Not a Bug
Votes
0
Created
29/Mar/14 4:54 PM EDT
Closed
29/Mar/2014 5:38 PM EDT
Description
Hi! I'm trying to get the events scheduled for April for NBA using : <a href="/events.json?date=20140403&sport=nba">/events.json?date=20140403&sport=nba</a> This returns the events scheduled for MLB and NBA without filtering them by the sport parameter. Thanks in advance!!
Closing Comment
The "&" is a special character in Linux/OS X/Unix environments. In your case, the "sport=nba" parameter is never sent to the server, hence the results are not filtered. The fix is easy, though, just surround your request URL in quotes. This instructs the shell to treat the "&" as a normal character. More information here: <a href="/api/issues/137">/api/issues/137</a> and <a href="/api/issues/155">/api/issues/155</a>