John,
here is a python snippet for uploaded an NBA game:
import requests
url = "
https://s3.sportsdatabase.com/api"
d = { "date": 20200310, "t:team": "Bulls","o:team": "Cavaliers", "t:site": "home","o:site": "away", "t:points": 108,"o:points": 103 }
h = {'token':JC_TOKEN,'client':'jcurrey','league':'NBA','action':'update'}
ret =
requests.post(url,json=d, headers=h)
print("ret:",ret.status_code,ret.text,)
when you are ready to build your database, you use:
h = {'token':JC_TOKEN,'client':'jcurrey','league':'NBA','action':'build'}
ret =
requests.post(url, headers=h)
print("ret:",ret.status_code,ret.text,)
and you will see your NBA database at:
best regards,
Joe Meyer