Skip to content

Commit 1938cdb

Browse files
committed
add offset, limit to followed games
1 parent fabd5c6 commit 1938cdb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/lib/twitch/api/v5/games.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ def _check_follows(username, name):
2929
# required scope: none
3030
# undocumented / unsupported
3131
@query
32-
def _get_followed(username):
32+
def _get_followed(username, limit=25, offset=0):
3333
q = HQry('users/{username}/follows/games')
3434
q.add_urlkw(keys.USERNAME, username)
35+
q.add_param(keys.LIMIT, limit, 25)
36+
q.add_param(keys.OFFSET, offset, 0)
3537
return q
3638

3739

0 commit comments

Comments
 (0)