Skip to content

Commit

Permalink
updated docs of get_stream_tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Teekeks committed Oct 9, 2020
1 parent 865b8d0 commit 0a2180a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions twitchAPI/twitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ def get_all_stream_tags(self,
:param str after: Cursor for forward pagination
:param int first: Maximum number of objects to return. Maximum: 100. Default: 20.
:param list[str] tag_ids: IDs of tags. Maximum 100 entries
:raises ~twitchAPI.types.UnauthorizedException: if app authentication is not set
:raises ~twitchAPI.types.UnauthorizedException: if app authentication is not set
:raises ~twitchAPI.types.TwitchAuthorizationException: if the used authentication token became invalid
and a re authentication failed
:raises ~twitchAPI.types.TwitchBackendException: if the Twitch API itself runs into problems
Expand All @@ -1019,10 +1019,16 @@ def get_all_stream_tags(self,

def get_stream_tags(self,
broadcaster_id: str) -> dict:
"""Requires App authentication\n
"""Gets the list of tags for a specified stream (channel).\n\n
Requires App authentication\n
For detailed documentation, see here: https://dev.twitch.tv/docs/api/reference#get-stream-tags
:param broadcaster_id: str, id of streamer
:param str broadcaster_id: ID of the stream thats tags are going to be fetched
:raises ~twitchAPI.types.UnauthorizedException: if app authentication is not set
:raises ~twitchAPI.types.TwitchAuthorizationException: if the used authentication token became invalid
and a re authentication failed
:raises ~twitchAPI.types.TwitchBackendException: if the Twitch API itself runs into problems
:rtype: dict
"""
url = build_url(TWITCH_API_BASE_URL + 'streams/tags', {'broadcaster_id': broadcaster_id})
Expand Down

0 comments on commit 0a2180a

Please sign in to comment.