jasonroman / nba-api

PHP Library to access NBA API endpoints
MIT License
95 stars 14 forks source link

TeamRoster Request by teamSlug error for 2 teams : sixers && blazers #7

Open cap340 opened 5 years ago

cap340 commented 5 years ago

All teams roster are working except for these slugs : sixers && blazers

Client error: GET http://data.nba.net/v2015/json/mobile_teams/nba/2018/teams/blazers_roster.json resulted in a 404 Not Found response

I also try to with your tools : http://nbasense.com/nba-api/Data/MobileTeams/Roster/TeamRoster#request-form-playground

Error: Could not retrieve the result at this time.

url in browser return empty page for those slugs too : http://data.nba.net/v2015/json/mobile_teams/nba/2018/teams/sixers_roster.json http://data.nba.net/v2015/json/mobile_teams/nba/2018/teams/blazers_roster.json

Thanks for your help

jasonroman commented 5 years ago

I will have to look into this further - either the NBA changed some of their team slugs, or some NBA endpoints use alternate ones. In the meantime these two endpoints will work:

http://data.nba.net/v2015/json/mobile_teams/nba/2018/teams/76ers_roster.json http://data.nba.net/v2015/json/mobile_teams/nba/2018/teams/trail_blazers_roster.json