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:

A list of Broadcaster objects.

Return type:

list[Broadcaster]

Raises:
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:
  • session (Session) – An authenticated Session.

  • broadcaster (str) – The broadcaster key to validate (case-insensitive).

Returns:

The correctly-cased broadcaster key.

Return type:

str

Raises:

GameSheetError – If the broadcaster key is not valid.