TheRundown

免费增值
通过 TheRundown | 已更新 16 дней назад | Sports
人气

9.7 / 10

延迟

242ms

服务等级

100%

Health Check

N/A

返回所有讨论

unirest is not supported by Python 3.x

Rapid account: Calinucrew
Calinucrew
5 лет назад

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 лет назад

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 лет назад

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

Rapid account: Therundown
therundown Commented 5 лет назад

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}]}
>>>

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论