Skip to content

Commit 3eb8ab6

Browse files
committed
Added Tag resource
1 parent 1c804d8 commit 3eb8ab6

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

twitch/helix/api.py

+11-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,16 @@
1212
)
1313
from twitch.exceptions import TwitchAttributeException, TwitchOAuthException
1414
from twitch.helix.base import APICursor, APIGet
15-
from twitch.resources import Clip, Follow, Game, Stream, StreamMetadata, User, Video
15+
from twitch.resources import (
16+
Clip,
17+
Follow,
18+
Game,
19+
Stream,
20+
StreamMetadata,
21+
Tag,
22+
User,
23+
Video,
24+
)
1625

1726

1827
class TwitchHelix(object):
@@ -362,6 +371,6 @@ def get_tags(self, after=None, page_size=20, tag_ids=None):
362371
client_id=self._client_id,
363372
oauth_token=self._oauth_token,
364373
path="tags/streams",
365-
resource=Stream,
374+
resource=Tag,
366375
params=params,
367376
)

twitch/resources.py

+4
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ class Subscription(TwitchObject):
134134
pass
135135

136136

137+
class Tag(TwitchObject):
138+
pass
139+
140+
137141
class Team(TwitchObject):
138142
pass
139143

0 commit comments

Comments
 (0)