TheRundown

FREEMIUM
By TheRundown | Updated 5 days ago | Sports
Popularity

9.7 / 10

Latency

261ms

Service Level

100%

Health Check

N/A

Back to All Discussions

unirest is not supported by Python 3.x

Rapid account: Calinucrew
Calinucrew
5 years ago

unirest is not supported by Python 3.x do you know what library would be supported and do you have sample code

Rapid account: Therundown
therundown Commented 5 years ago

Hi fliplewis, the following statuses are available:

STATUS_CANCELED
STATUS_FINAL
STATUS_SCHEDULED
STATUS_HALFTIME
STATUS_END_PERIOD
STATUS_IN_PROGRESS
STATUS_POSTPONED
Rapid account: Fliplewis
fliplewis Commented 5 years ago

What are different types of event_status such as one is STATUS_NOT_AVAILABLE?

Rapid account: Therundown
therundown Commented 5 years ago

Hi Calinucrew,

Thanks for reaching out and raising this issue!

For Python 3, we recommend the requests library. Here is a bit of sample code using requests that you may use to integrate with our API:

>>> import requests
>>> response = requests.get("https://therundown-therundown-v1.p.mashape.com/sports",
...   headers={
...     "X-Mashape-Key": "your-api-key",
...     "Accept": "application/json"
...   }
... )
>>> response.json()
{u'sports': [{u'sport_name': u'NCAA Football', u'sport_id': 1}, {u'sport_name': u'NFL', u'sport_id': 2}, {u'sport_name': u'MLB', u'sport_id': 3}, {u'sport_name': u'NBA', u'sport_id': 4}, {u'sport_name': u"NCAA Men's Basketball", u'sport_id': 5}, {u'sport_name': u'NHL', u'sport_id': 6}]}
>>>

Join in the discussion - add comment below:

Login / Signup to post new comments