Browse Source

Web

pull/10/head
Jure Šorn 6 years ago
parent
commit
d1ad8f5b4e
1 changed files with 2 additions and 1 deletions
  1. 3
      README.md

3
README.md

@ -1542,7 +1542,8 @@ def odds_handler(sport):
```python
# $ pip3 install requests
>>> import requests
>>> r = requests.post('http://localhost:8080/odds/soccer', data={'team': 'arsenal f.c.'})
>>> url = 'http://localhost:8080/odds/soccer'
>>> r = requests.post(url, data={'team': 'arsenal f.c.'})
>>> r.json()
['arsenal f.c.', 2.44, 3.29]
```

Loading…
Cancel
Save