From 21176faefd538057acd0da3ba401e7965252c69b Mon Sep 17 00:00:00 2001 From: awwsomepotato <153149335+awwsomepotato@users.noreply.github.com> Date: Tue, 15 Oct 2024 19:26:59 -0700 Subject: [PATCH] fix: add api key note thingy --- TBAData.py | 3 ++- nexusData.py | 3 ++- tbaPulseData.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/TBAData.py b/TBAData.py index a37a6e2..962a8f8 100644 --- a/TBAData.py +++ b/TBAData.py @@ -14,7 +14,8 @@ def __init__(self): configuration = tbaapiv3client.Configuration( host="https://www.thebluealliance.com/api/v3", api_key={ -***REMOVED*** + "X-TBA-Auth-Key": "" + # TODO get api key from .env }, ) diff --git a/nexusData.py b/nexusData.py index 80e67b7..b8df7a2 100644 --- a/nexusData.py +++ b/nexusData.py @@ -7,7 +7,8 @@ event_key = "demo8771" # TESTING! change to the event key before using at events url = "https://frc.nexus/api/v1/event/" + event_key -***REMOVED*** +headers = {"Nexus-Api-Key": ""} +# TODO get api from .env def nexusData(): diff --git a/tbaPulseData.py b/tbaPulseData.py index 2aacd83..c3b3e4c 100644 --- a/tbaPulseData.py +++ b/tbaPulseData.py @@ -1,6 +1,7 @@ import tbapy -***REMOVED*** +# TODO get api from .env +key = "" event_key = "2024cc" # TESTING! change to your event key when using at events tba = tbapy.TBA(key)