We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3f91f4 commit c310b6cCopy full SHA for c310b6c
resources/lib/twitch/api/v5/streams.py
@@ -19,8 +19,8 @@
19
# required scope: none
20
@query
21
def by_id(channel_id, stream_type=StreamType.LIVE):
22
- q = Qry('streams/{channel_id}', use_token=False)
23
- q.add_urlkw(keys.CHANNEL_ID, channel_id)
+ q = Qry('streams', use_token=False)
+ q.add_param(keys.CHANNEL, channel_id)
24
q.add_param(keys.STREAM_TYPE, StreamType.validate(stream_type), StreamType.LIVE)
25
return q
26
0 commit comments