From 42f9f2ccddd13bd4e89f04036489143d7ac0d909 Mon Sep 17 00:00:00 2001 From: jlevine18 Date: Thu, 21 Mar 2019 15:23:24 -0500 Subject: [PATCH] add opr request --- data analysis/tbarequest.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/data analysis/tbarequest.py b/data analysis/tbarequest.py index 9fb20956..15d02925 100644 --- a/data analysis/tbarequest.py +++ b/data analysis/tbarequest.py @@ -62,6 +62,14 @@ def req_event_elim_alli(event_key, apikey): r=requests.get('https://www.thebluealliance.com/api/v3/event/'+str(event_key)+'/alliances', headers=headers) return r +#requests oprs and dprs +def req_event_opr(event_key, apikey): + headers={'X-TBA-Auth-Key':apikey} + r=requests.get('https://www.thebluealliance.com/api/v3//event/'+str(event_key)+'/oprs', headers=headers) + return r + + + #gets TBA's insights from an event def req_event_insights(event_key, apikey): headers={'X-TBA-Auth-Key':apikey}