Skip to content

Commit 5629279

Browse files
authored
Merge pull request #42 from anxdpanic/dev
2.0.0~alpha4
2 parents c4774f2 + 278761e commit 5629279

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

addon.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<addon id="script.module.python.twitch" name="python-twitch for Kodi" version="2.0.0~alpha3" provider-name="A Talented Community">
2+
<addon id="script.module.python.twitch" name="python-twitch for Kodi" version="2.0.0~alpha4" provider-name="A Talented Community">
33
<requires>
44
<import addon="xbmc.python" version="2.20.0"/>
55
<import addon="script.module.six" version="1.9.0"/>
@@ -14,6 +14,7 @@
1414
[add] add usher.live_request and usher.video_request
1515
[add] MobileClient().revoke_token and MobileClient().get_app_access_token queries
1616
[add] Kodi logging
17+
[add] v5 users.users
1718
</news>
1819
<assets>
1920
<icon>icon.png</icon>

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
[add] add usher.live_request and usher.video_request
1010
[add] MobileClient().revoke_token and MobileClient().get_app_access_token queries
1111
[add] Kodi logging
12+
[add] v5 users.users
1213

1314
1.1.0
1415
*** Twitch API V5 is deprecated and will be removed entirely on 2/14/18

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ def by_id(user_id):
2222
return q
2323

2424

25+
# required scope: user_read
26+
@query
27+
def users(logins):
28+
q = Qry('users')
29+
q.add_param(keys.LOGIN, logins)
30+
return q
31+
32+
2533
# required scope: user_subscriptions
2634
@query
2735
def get_emotes(user_id):

0 commit comments

Comments
 (0)