gamesheet_sdk.teams.shared.constants module¶
Teams-specific constants and configuration values.
This module defines URL constants and endpoint paths specific to the GameSheet teams dashboard API gateway.
- gamesheet_sdk.teams.shared.constants.TEAMS_API_GATEWAY¶
Base URL of the teams API gateway.
- Type:
- gamesheet_sdk.teams.shared.constants.FIREBASE_API_KEY¶
Firebase API key for the
gamesheet-productionproject.- Type:
- gamesheet_sdk.teams.shared.constants.TEAMS_TOKEN_EXCHANGE_PATH¶
Endpoint path for exchanging a Firebase ID token for app tokens.
- Type:
- gamesheet_sdk.teams.shared.constants.TEAMS_REFRESH_PATH¶
Endpoint path for refreshing an expired access token.
- Type:
- gamesheet_sdk.teams.shared.constants.TEAMS_LOOKUPS_PATH¶
Endpoint path for fetching public lookup data (no auth required).
- Type:
- gamesheet_sdk.teams.shared.constants.TEAMS_SEASONS_PATH¶
Endpoint path for fetching seasons data.
- Type:
- gamesheet_sdk.teams.shared.constants.TEAMS_TEAMS_PATH¶
Endpoint path for fetching teams data.
- Type:
- gamesheet_sdk.teams.shared.constants.TEAMS_CALENDAR_PATH¶
Endpoint path for fetching team calendar and schedule data.
- Type:
- gamesheet_sdk.teams.shared.constants.TEAMS_CALENDAR_EVENTS_PATH¶
Endpoint path for creating calendar events and practices.
- Type:
- gamesheet_sdk.teams.shared.constants.TEAMS_CALENDAR_OCCURRENCES_PATH¶
Endpoint path for fetching individual calendar event occurrences.
- Type:
- gamesheet_sdk.teams.shared.constants.TEAMS_SCHEDULE_GAME_PATH¶
Endpoint path for fetching and managing scheduled game details.
- Type:
- gamesheet_sdk.teams.shared.constants.TEAMS_AVAILABILITY_BATCH_PATH¶
Endpoint path for fetching batch availability data.
- Type:
- gamesheet_sdk.teams.shared.constants.TEAMS_IMAGES_UPLOAD_URL_PATH¶
Endpoint path for requesting direct image upload URLs.
- Type:
- gamesheet_sdk.teams.shared.constants.TEAMS_PUBLIC_CALENDAR_SERVICE¶
Host and path prefix for the public calendar subscription feed service.
- Type:
Example
Building a token exchange URL:
from gamesheet_sdk.teams.shared.constants import (
TEAMS_API_GATEWAY,
TEAMS_TOKEN_EXCHANGE_PATH,
)
url = f"{TEAMS_API_GATEWAY}{TEAMS_TOKEN_EXCHANGE_PATH}"