gamesheet_sdk.admin.games.broadcasters module¶
Broadcaster operations for games.
- gamesheet_sdk.admin.games.broadcasters.list_broadcasters(session)[source]¶
Return the list of valid broadcasters.
Fetches the current list of broadcaster services from the BFF API. The returned broadcaster keys can be used when creating or updating scheduled games.
- Parameters:
session (Session) – An authenticated
Session.- Returns:
list[Broadcaster] – A list of
Broadcasterobjects.- Return type:
- gamesheet_sdk.admin.games.broadcasters.validate_broadcaster_key(session, broadcaster)[source]¶
Validate a broadcaster key and return the correctly-cased version.
Fetches the list of valid broadcasters and performs a case-insensitive match. Returns the broadcaster key with the correct casing as stored in the API.
- Parameters:
- Returns:
str – The correctly-cased broadcaster key.
- Raises:
GameSheetError – If the broadcaster key is not valid.
- Return type: