Events method is not filtering by sport parameter

Issue No. 169

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 : /events.json?date=20140403&sport=nba 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: /api/issues/137 and /api/issues/155