Skip to content

Commit 66a2685

Browse files
committed
add get followed streams
1 parent dd38a7c commit 66a2685

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

resources/lib/twitch/api/helix/streams.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ def get_streams(game_id=list(), user_id=list(),
3838
return q
3939

4040

41+
# required scope: user:read:follows
42+
@query
43+
def get_followed(user_id, after='MA==', first=20, use_app_token=False):
44+
q = Qry('streams', use_app_token=use_app_token)
45+
q.add_param(keys.AFTER, Cursor.validate(after), 'MA==')
46+
q.add_param(keys.FIRST, IntRange(1, 100).validate(first), 20)
47+
q.add_param(keys.USER_ID, user_id)
48+
49+
return q
50+
51+
4152
# required scope: none
4253
@query
4354
def get_metadata(game_id=list(), user_id=list(),

0 commit comments

Comments
 (0)