alexmchale / xmlstats-ruby

A ruby client for xmlstats, an easy to use API for obtaining MLB and NBA statistics in XML or JSON.
MIT License
5 stars 2 forks source link

Past events still have status "scheduled" via the gem #6

Open campgurus opened 8 years ago

campgurus commented 8 years ago

I am using your gem to access xmlstats. Thanks for your work on it! However, I am running into an issue I want to document.

Specifically looking at an NBA game completed yesterday, event_status is still listed as "scheduled" instead of "completed" which is what gets correctly returned via a curl request to the api.

>> Xmlstats.events(Date.today-1.day, :nba).first.event_id
=> "20151027-cleveland-cavaliers-at-chicago-bulls"
>> Xmlstats.events(Date.today-1.day, :nba).first.event_status
=> "scheduled"

via cURL:

~$ curl --compressed -H "Authorization: Bearer [API_TOKEN]" "https://erikberg.com/events.json?date=20151027&sport=nba"                                     
{"events_date":"2015-10-27T00:00:00-04:00"
,"event":[{"event_id":"20151027-cleveland-cavaliers-at-chicago-bulls",
"event_status":"completed",
... "away_points_scored":95,"home_points_scored":97}
alexmchale commented 8 years ago

Thanks for reporting this! I'll take a look.

campgurus commented 8 years ago

Cool. Thanks!

Brotakuu commented 8 years ago

Still experiencing this issue. Has it been resolved?