Created
August 24, 2018 13:18
-
-
Save S1M0N38/d400f0aee68c87fde0183507c5180045 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# API is not ready yet | |
import requests | |
token = 'put_token_here' | |
headers = {'Authorization': f'Token {token}'} | |
# events | |
url = 'https://againstallodds.me/api/events/england/premier_league/' | |
r = requests.get(url, headers=headers) | |
print(r.json()[:2], '\n') | |
# odds | |
url = 'https://againstallodds.me/api/odds/england/premier_league/' | |
r = requests.get(url, headers=headers) | |
print(r.json()[:2], '\n') | |
# coupons (you can get, create and delete coupons links to your username) | |
url = 'https://againstallodds.me/api/coupons/' | |
r = requests.get(url, headers=headers) | |
print(r.json()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment