SlyYTDAPI.members#

YouTube Members Endpoints for the Data API v3 https://developers.google.com/youtube/v3/docs/members

Classes

MemberLevel(source)

MembersMode(value)

An enumeration.

Membership(source)

YouTubeData_WithMembers(auth)

class SlyYTDAPI.members.MembersMode(value)[source]#

Bases: Enum

An enumeration.

ALL_CURRENT = 'all_current'#
UPDATES = 'updates'#
class SlyYTDAPI.members.MemberLevel(source)[source]#

Bases: object

Parameters:

source (dict[str, int | float | bool | str | None | list['JsonType'] | dict[str, 'JsonType']]) –

id: str#
name: str#
class SlyYTDAPI.members.Membership(source)[source]#

Bases: object

Parameters:

source (dict[str, Any]) –

channel_id: str#
channel_name: str#
profile_image_url: str#
level: MemberLevel#
since: datetime#
total_months: int#
since_at_level: datetime#
total_months_at_level: int#
class SlyYTDAPI.members.YouTubeData_WithMembers(auth)[source]#

Bases: YouTubeData

Parameters:

auth (Auth) –

get_my_members(level_id=None, member_channel_ids=None, parts=Part.SNIPPET, limit=None)[source]#
Parameters:
Return type:

AsyncTrans[Membership]

await poll_new_members()[source]#

Polls for new members since the last call to this method.

Return type:

list[SlyYTDAPI.members.Membership]

await get_my_levels()[source]#
Return type:

list[SlyYTDAPI.members.MemberLevel]