Skip to content

Commit

Permalink
fix: drop nrc dead code
Browse files Browse the repository at this point in the history
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
  • Loading branch information
yihong0618 committed Nov 25, 2024
1 parent b921d94 commit 16da422
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions run_page/nike_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,6 @@ class Nike:
def __init__(self, access_token):
self.client = httpx.Client()

# HINT: if you have old nrc refresh_token un comments this lines it still works

# response = self.client.post(
# TOKEN_REFRESH_URL,
# headers=NIKE_HEADERS,
# json={
# "refresh_token": access_token, # its refresh_token for tesy here
# "client_id": b64decode(NIKE_CLIENT_ID).decode(),
# "grant_type": "refresh_token",
# "ux_id": b64decode(NIKE_UX_ID).decode(),
# },
# timeout=60,
# )
# response.raise_for_status()
# access_token = response.json()["access_token"]

self.client.headers.update({"Authorization": f"Bearer {access_token}"})

def get_activities_since_timestamp(self, timestamp):
Expand Down

0 comments on commit 16da422

Please sign in to comment.