ts-twitch-api 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +206 -146
- package/dist/index.d.cts +1816 -3053
- package/dist/index.d.ts +1816 -3053
- package/dist/index.js +206 -146
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -134,7 +134,7 @@ var TwitchApi = class {
|
|
|
134
134
|
*
|
|
135
135
|
* @see https://dev.twitch.tv/docs/api/reference#start-commercial
|
|
136
136
|
*/
|
|
137
|
-
startCommercial:
|
|
137
|
+
startCommercial: (body, options = {}) => this.callApi({
|
|
138
138
|
path: "/channels/commercial",
|
|
139
139
|
method: "POST",
|
|
140
140
|
body,
|
|
@@ -165,7 +165,7 @@ var TwitchApi = class {
|
|
|
165
165
|
*
|
|
166
166
|
* @see https://dev.twitch.tv/docs/api/reference#get-ad-schedule
|
|
167
167
|
*/
|
|
168
|
-
getAdSchedule:
|
|
168
|
+
getAdSchedule: (params, options = {}) => this.callApi({
|
|
169
169
|
path: "/channels/ads",
|
|
170
170
|
params,
|
|
171
171
|
options
|
|
@@ -201,7 +201,7 @@ var TwitchApi = class {
|
|
|
201
201
|
*
|
|
202
202
|
* @see https://dev.twitch.tv/docs/api/reference#snooze-next-ad
|
|
203
203
|
*/
|
|
204
|
-
snoozeNextAd:
|
|
204
|
+
snoozeNextAd: (params, options = {}) => this.callApi({
|
|
205
205
|
path: "/channels/ads/schedule/snooze",
|
|
206
206
|
method: "POST",
|
|
207
207
|
params,
|
|
@@ -248,7 +248,7 @@ var TwitchApi = class {
|
|
|
248
248
|
*
|
|
249
249
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-analytics
|
|
250
250
|
*/
|
|
251
|
-
getExtensionAnalytics:
|
|
251
|
+
getExtensionAnalytics: (params = null, options = {}) => this.callApi({
|
|
252
252
|
path: "/analytics/extensions",
|
|
253
253
|
params,
|
|
254
254
|
options
|
|
@@ -292,7 +292,7 @@ var TwitchApi = class {
|
|
|
292
292
|
*
|
|
293
293
|
* @see https://dev.twitch.tv/docs/api/reference#get-game-analytics
|
|
294
294
|
*/
|
|
295
|
-
getGameAnalytics:
|
|
295
|
+
getGameAnalytics: (params = null, options = {}) => this.callApi({
|
|
296
296
|
path: "/analytics/games",
|
|
297
297
|
params,
|
|
298
298
|
options
|
|
@@ -333,7 +333,7 @@ var TwitchApi = class {
|
|
|
333
333
|
*
|
|
334
334
|
* @see https://dev.twitch.tv/docs/api/reference#get-bits-leaderboard
|
|
335
335
|
*/
|
|
336
|
-
getBitsLeaderboard:
|
|
336
|
+
getBitsLeaderboard: (params = null, options = {}) => this.callApi({
|
|
337
337
|
path: "/bits/leaderboard",
|
|
338
338
|
params,
|
|
339
339
|
options
|
|
@@ -362,7 +362,7 @@ var TwitchApi = class {
|
|
|
362
362
|
*
|
|
363
363
|
* @see https://dev.twitch.tv/docs/api/reference#get-cheermotes
|
|
364
364
|
*/
|
|
365
|
-
getCheermotes:
|
|
365
|
+
getCheermotes: (params = null, options = {}) => this.callApi({
|
|
366
366
|
path: "/bits/cheermotes",
|
|
367
367
|
params,
|
|
368
368
|
options
|
|
@@ -403,7 +403,7 @@ var TwitchApi = class {
|
|
|
403
403
|
*
|
|
404
404
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-transactions
|
|
405
405
|
*/
|
|
406
|
-
getExtensionTransactions:
|
|
406
|
+
getExtensionTransactions: (params, options = {}) => this.callApi({
|
|
407
407
|
path: "/extensions/transactions",
|
|
408
408
|
params,
|
|
409
409
|
options
|
|
@@ -447,7 +447,7 @@ var TwitchApi = class {
|
|
|
447
447
|
*
|
|
448
448
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-information
|
|
449
449
|
*/
|
|
450
|
-
getChannelInformation:
|
|
450
|
+
getChannelInformation: (params, options = {}) => this.callApi({
|
|
451
451
|
path: "/channels",
|
|
452
452
|
params,
|
|
453
453
|
options
|
|
@@ -509,7 +509,7 @@ var TwitchApi = class {
|
|
|
509
509
|
*
|
|
510
510
|
* @see https://dev.twitch.tv/docs/api/reference#modify-channel-information
|
|
511
511
|
*/
|
|
512
|
-
modifyChannelInformation:
|
|
512
|
+
modifyChannelInformation: (params, body = null, options = {}) => this.callApi({
|
|
513
513
|
path: "/channels",
|
|
514
514
|
method: "PATCH",
|
|
515
515
|
params,
|
|
@@ -547,7 +547,7 @@ var TwitchApi = class {
|
|
|
547
547
|
*
|
|
548
548
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-editors
|
|
549
549
|
*/
|
|
550
|
-
getChannelEditors:
|
|
550
|
+
getChannelEditors: (params, options = {}) => this.callApi({
|
|
551
551
|
path: "/channels/editors",
|
|
552
552
|
params,
|
|
553
553
|
options
|
|
@@ -589,7 +589,7 @@ var TwitchApi = class {
|
|
|
589
589
|
*
|
|
590
590
|
* @see https://dev.twitch.tv/docs/api/reference#get-followed-channels
|
|
591
591
|
*/
|
|
592
|
-
getFollowedChannels:
|
|
592
|
+
getFollowedChannels: (params, options = {}) => this.callApi({
|
|
593
593
|
path: "/channels/followed",
|
|
594
594
|
params,
|
|
595
595
|
options
|
|
@@ -634,7 +634,7 @@ var TwitchApi = class {
|
|
|
634
634
|
*
|
|
635
635
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-followers
|
|
636
636
|
*/
|
|
637
|
-
getChannelFollowers:
|
|
637
|
+
getChannelFollowers: (params, options = {}) => this.callApi({
|
|
638
638
|
path: "/channels/followers",
|
|
639
639
|
params,
|
|
640
640
|
options
|
|
@@ -687,7 +687,7 @@ var TwitchApi = class {
|
|
|
687
687
|
*
|
|
688
688
|
* @see https://dev.twitch.tv/docs/api/reference#create-custom-rewards
|
|
689
689
|
*/
|
|
690
|
-
createCustomRewards:
|
|
690
|
+
createCustomRewards: (params, body, options = {}) => this.callApi({
|
|
691
691
|
path: "/channel_points/custom_rewards",
|
|
692
692
|
method: "POST",
|
|
693
693
|
params,
|
|
@@ -738,7 +738,7 @@ var TwitchApi = class {
|
|
|
738
738
|
*
|
|
739
739
|
* @see https://dev.twitch.tv/docs/api/reference#delete-custom-reward
|
|
740
740
|
*/
|
|
741
|
-
deleteCustomReward:
|
|
741
|
+
deleteCustomReward: (params, options = {}) => this.callApi({
|
|
742
742
|
path: "/channel_points/custom_rewards",
|
|
743
743
|
method: "DELETE",
|
|
744
744
|
params,
|
|
@@ -787,7 +787,7 @@ var TwitchApi = class {
|
|
|
787
787
|
*
|
|
788
788
|
* @see https://dev.twitch.tv/docs/api/reference#get-custom-reward
|
|
789
789
|
*/
|
|
790
|
-
getCustomReward:
|
|
790
|
+
getCustomReward: (params, options = {}) => this.callApi({
|
|
791
791
|
path: "/channel_points/custom_rewards",
|
|
792
792
|
params,
|
|
793
793
|
options
|
|
@@ -797,7 +797,7 @@ var TwitchApi = class {
|
|
|
797
797
|
*
|
|
798
798
|
* __Authorization:__
|
|
799
799
|
*
|
|
800
|
-
* Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope.
|
|
800
|
+
* Requires a [user access token](https://dev.twitch.tv/docs/api/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope.
|
|
801
801
|
*
|
|
802
802
|
* __Request Body:__
|
|
803
803
|
*
|
|
@@ -815,6 +815,7 @@ var TwitchApi = class {
|
|
|
815
815
|
*
|
|
816
816
|
* _400 Bad Request_
|
|
817
817
|
*
|
|
818
|
+
* ul>
|
|
818
819
|
* * The _broadcaster\_id_ query parameter is required.
|
|
819
820
|
* * The _id_ query parameter is required.
|
|
820
821
|
* * The `title` must contain a minimum of 1 character and a maximum of 45 characters.
|
|
@@ -845,7 +846,7 @@ var TwitchApi = class {
|
|
|
845
846
|
*
|
|
846
847
|
* @see https://dev.twitch.tv/docs/api/reference#update-custom-reward
|
|
847
848
|
*/
|
|
848
|
-
updateCustomReward:
|
|
849
|
+
updateCustomReward: (params, body = null, options = {}) => this.callApi({
|
|
849
850
|
path: "/channel_points/custom_rewards",
|
|
850
851
|
method: "PATCH",
|
|
851
852
|
params,
|
|
@@ -897,7 +898,7 @@ var TwitchApi = class {
|
|
|
897
898
|
*
|
|
898
899
|
* @see https://dev.twitch.tv/docs/api/reference#get-custom-reward-redemption
|
|
899
900
|
*/
|
|
900
|
-
getCustomRewardRedemption:
|
|
901
|
+
getCustomRewardRedemption: (params, options = {}) => this.callApi({
|
|
901
902
|
path: "/channel_points/custom_rewards/redemptions",
|
|
902
903
|
params,
|
|
903
904
|
options
|
|
@@ -947,7 +948,7 @@ var TwitchApi = class {
|
|
|
947
948
|
*
|
|
948
949
|
* @see https://dev.twitch.tv/docs/api/reference#update-redemption-status
|
|
949
950
|
*/
|
|
950
|
-
updateRedemptionStatus:
|
|
951
|
+
updateRedemptionStatus: (params, body, options = {}) => this.callApi({
|
|
951
952
|
path: "/channel_points/custom_rewards/redemptions",
|
|
952
953
|
method: "PATCH",
|
|
953
954
|
params,
|
|
@@ -994,7 +995,7 @@ var TwitchApi = class {
|
|
|
994
995
|
*
|
|
995
996
|
* @see https://dev.twitch.tv/docs/api/reference#get-charity-campaign
|
|
996
997
|
*/
|
|
997
|
-
getCharityCampaign:
|
|
998
|
+
getCharityCampaign: (params, options = {}) => this.callApi({
|
|
998
999
|
path: "/charity/campaigns",
|
|
999
1000
|
params,
|
|
1000
1001
|
options
|
|
@@ -1037,7 +1038,7 @@ var TwitchApi = class {
|
|
|
1037
1038
|
*
|
|
1038
1039
|
* @see https://dev.twitch.tv/docs/api/reference#get-charity-campaign-donations
|
|
1039
1040
|
*/
|
|
1040
|
-
getCharityCampaignDonations:
|
|
1041
|
+
getCharityCampaignDonations: (params, options = {}) => this.callApi({
|
|
1041
1042
|
path: "/charity/donations",
|
|
1042
1043
|
params,
|
|
1043
1044
|
options
|
|
@@ -1086,7 +1087,7 @@ var TwitchApi = class {
|
|
|
1086
1087
|
*
|
|
1087
1088
|
* @see https://dev.twitch.tv/docs/api/reference#get-chatters
|
|
1088
1089
|
*/
|
|
1089
|
-
getChatters:
|
|
1090
|
+
getChatters: (params, options = {}) => this.callApi({
|
|
1090
1091
|
path: "/chat/chatters",
|
|
1091
1092
|
params,
|
|
1092
1093
|
options
|
|
@@ -1124,7 +1125,7 @@ var TwitchApi = class {
|
|
|
1124
1125
|
*
|
|
1125
1126
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-emotes
|
|
1126
1127
|
*/
|
|
1127
|
-
getChannelEmotes:
|
|
1128
|
+
getChannelEmotes: (params, options = {}) => this.callApi({
|
|
1128
1129
|
path: "/chat/emotes",
|
|
1129
1130
|
params,
|
|
1130
1131
|
options
|
|
@@ -1160,7 +1161,7 @@ var TwitchApi = class {
|
|
|
1160
1161
|
*
|
|
1161
1162
|
* @see https://dev.twitch.tv/docs/api/reference#get-global-emotes
|
|
1162
1163
|
*/
|
|
1163
|
-
getGlobalEmotes:
|
|
1164
|
+
getGlobalEmotes: (options = {}) => this.callApi({
|
|
1164
1165
|
path: "/chat/emotes/global",
|
|
1165
1166
|
options
|
|
1166
1167
|
}),
|
|
@@ -1198,7 +1199,7 @@ var TwitchApi = class {
|
|
|
1198
1199
|
*
|
|
1199
1200
|
* @see https://dev.twitch.tv/docs/api/reference#get-emote-sets
|
|
1200
1201
|
*/
|
|
1201
|
-
getEmoteSets:
|
|
1202
|
+
getEmoteSets: (params, options = {}) => this.callApi({
|
|
1202
1203
|
path: "/chat/emotes/set",
|
|
1203
1204
|
params,
|
|
1204
1205
|
options
|
|
@@ -1232,7 +1233,7 @@ var TwitchApi = class {
|
|
|
1232
1233
|
*
|
|
1233
1234
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-chat-badges
|
|
1234
1235
|
*/
|
|
1235
|
-
getChannelChatBadges:
|
|
1236
|
+
getChannelChatBadges: (params, options = {}) => this.callApi({
|
|
1236
1237
|
path: "/chat/badges",
|
|
1237
1238
|
params,
|
|
1238
1239
|
options
|
|
@@ -1266,7 +1267,7 @@ var TwitchApi = class {
|
|
|
1266
1267
|
*
|
|
1267
1268
|
* @see https://dev.twitch.tv/docs/api/reference#get-global-chat-badges
|
|
1268
1269
|
*/
|
|
1269
|
-
getGlobalChatBadges:
|
|
1270
|
+
getGlobalChatBadges: (options = {}) => this.callApi({
|
|
1270
1271
|
path: "/chat/badges/global",
|
|
1271
1272
|
options
|
|
1272
1273
|
}),
|
|
@@ -1301,7 +1302,7 @@ var TwitchApi = class {
|
|
|
1301
1302
|
*
|
|
1302
1303
|
* @see https://dev.twitch.tv/docs/api/reference#get-chat-settings
|
|
1303
1304
|
*/
|
|
1304
|
-
getChatSettings:
|
|
1305
|
+
getChatSettings: (params, options = {}) => this.callApi({
|
|
1305
1306
|
path: "/chat/settings",
|
|
1306
1307
|
params,
|
|
1307
1308
|
options
|
|
@@ -1355,7 +1356,7 @@ var TwitchApi = class {
|
|
|
1355
1356
|
*
|
|
1356
1357
|
* @see https://dev.twitch.tv/docs/api/reference#update-chat-settings
|
|
1357
1358
|
*/
|
|
1358
|
-
updateChatSettings:
|
|
1359
|
+
updateChatSettings: (params, body = null, options = {}) => this.callApi({
|
|
1359
1360
|
path: "/chat/settings",
|
|
1360
1361
|
method: "PATCH",
|
|
1361
1362
|
params,
|
|
@@ -1363,7 +1364,7 @@ var TwitchApi = class {
|
|
|
1363
1364
|
options
|
|
1364
1365
|
}),
|
|
1365
1366
|
/**
|
|
1366
|
-
*
|
|
1367
|
+
* NEW Retrieves emotes available to the user across all channels.
|
|
1367
1368
|
*
|
|
1368
1369
|
* __Authorization:__
|
|
1369
1370
|
*
|
|
@@ -1395,7 +1396,7 @@ var TwitchApi = class {
|
|
|
1395
1396
|
*
|
|
1396
1397
|
* @see https://dev.twitch.tv/docs/api/reference#get-user-emotes
|
|
1397
1398
|
*/
|
|
1398
|
-
getUserEmotes:
|
|
1399
|
+
getUserEmotes: (params, options = {}) => this.callApi({
|
|
1399
1400
|
path: "/chat/emotes/user",
|
|
1400
1401
|
params,
|
|
1401
1402
|
options
|
|
@@ -1433,7 +1434,7 @@ var TwitchApi = class {
|
|
|
1433
1434
|
*
|
|
1434
1435
|
* @see https://dev.twitch.tv/docs/api/reference#send-chat-announcement
|
|
1435
1436
|
*/
|
|
1436
|
-
sendChatAnnouncement:
|
|
1437
|
+
sendChatAnnouncement: (params, body, options = {}) => this.callApi({
|
|
1437
1438
|
path: "/chat/announcements",
|
|
1438
1439
|
method: "POST",
|
|
1439
1440
|
params,
|
|
@@ -1492,7 +1493,7 @@ var TwitchApi = class {
|
|
|
1492
1493
|
*
|
|
1493
1494
|
* @see https://dev.twitch.tv/docs/api/reference#send-a-shoutout
|
|
1494
1495
|
*/
|
|
1495
|
-
sendShoutout:
|
|
1496
|
+
sendShoutout: (params, options = {}) => this.callApi({
|
|
1496
1497
|
path: "/chat/shoutouts",
|
|
1497
1498
|
method: "POST",
|
|
1498
1499
|
params,
|
|
@@ -1542,7 +1543,7 @@ var TwitchApi = class {
|
|
|
1542
1543
|
*
|
|
1543
1544
|
* @see https://dev.twitch.tv/docs/api/reference#send-chat-message
|
|
1544
1545
|
*/
|
|
1545
|
-
sendChatMessage:
|
|
1546
|
+
sendChatMessage: (body, options = {}) => this.callApi({
|
|
1546
1547
|
path: "/chat/messages",
|
|
1547
1548
|
method: "POST",
|
|
1548
1549
|
body,
|
|
@@ -1577,7 +1578,7 @@ var TwitchApi = class {
|
|
|
1577
1578
|
*
|
|
1578
1579
|
* @see https://dev.twitch.tv/docs/api/reference#get-user-chat-color
|
|
1579
1580
|
*/
|
|
1580
|
-
getUserChatColor:
|
|
1581
|
+
getUserChatColor: (params, options = {}) => this.callApi({
|
|
1581
1582
|
path: "/chat/color",
|
|
1582
1583
|
params,
|
|
1583
1584
|
options
|
|
@@ -1616,7 +1617,7 @@ var TwitchApi = class {
|
|
|
1616
1617
|
*
|
|
1617
1618
|
* @see https://dev.twitch.tv/docs/api/reference#update-user-chat-color
|
|
1618
1619
|
*/
|
|
1619
|
-
updateUserChatColor:
|
|
1620
|
+
updateUserChatColor: (params, options = {}) => this.callApi({
|
|
1620
1621
|
path: "/chat/color",
|
|
1621
1622
|
method: "PUT",
|
|
1622
1623
|
params,
|
|
@@ -1670,7 +1671,7 @@ var TwitchApi = class {
|
|
|
1670
1671
|
*
|
|
1671
1672
|
* @see https://dev.twitch.tv/docs/api/reference#create-clip
|
|
1672
1673
|
*/
|
|
1673
|
-
createClip:
|
|
1674
|
+
createClip: (params, options = {}) => this.callApi({
|
|
1674
1675
|
path: "/clips",
|
|
1675
1676
|
method: "POST",
|
|
1676
1677
|
params,
|
|
@@ -1714,7 +1715,7 @@ var TwitchApi = class {
|
|
|
1714
1715
|
*
|
|
1715
1716
|
* @see https://dev.twitch.tv/docs/api/reference#get-clips
|
|
1716
1717
|
*/
|
|
1717
|
-
getClips:
|
|
1718
|
+
getClips: (params = null, options = {}) => this.callApi({
|
|
1718
1719
|
path: "/clips",
|
|
1719
1720
|
params,
|
|
1720
1721
|
options
|
|
@@ -1744,7 +1745,7 @@ var TwitchApi = class {
|
|
|
1744
1745
|
*
|
|
1745
1746
|
* @see https://dev.twitch.tv/docs/api/reference#get-conduits
|
|
1746
1747
|
*/
|
|
1747
|
-
getConduits:
|
|
1748
|
+
getConduits: (options = {}) => this.callApi({
|
|
1748
1749
|
path: "/eventsub/conduits",
|
|
1749
1750
|
options
|
|
1750
1751
|
}),
|
|
@@ -1779,7 +1780,7 @@ var TwitchApi = class {
|
|
|
1779
1780
|
*
|
|
1780
1781
|
* @see https://dev.twitch.tv/docs/api/reference#create-conduits
|
|
1781
1782
|
*/
|
|
1782
|
-
createConduits:
|
|
1783
|
+
createConduits: (body, options = {}) => this.callApi({
|
|
1783
1784
|
path: "/eventsub/conduits",
|
|
1784
1785
|
method: "POST",
|
|
1785
1786
|
body,
|
|
@@ -1818,7 +1819,7 @@ var TwitchApi = class {
|
|
|
1818
1819
|
*
|
|
1819
1820
|
* @see https://dev.twitch.tv/docs/api/reference#update-conduits
|
|
1820
1821
|
*/
|
|
1821
|
-
updateConduits:
|
|
1822
|
+
updateConduits: (body, options = {}) => this.callApi({
|
|
1822
1823
|
path: "/eventsub/conduits",
|
|
1823
1824
|
method: "PATCH",
|
|
1824
1825
|
body,
|
|
@@ -1856,7 +1857,7 @@ var TwitchApi = class {
|
|
|
1856
1857
|
*
|
|
1857
1858
|
* @see https://dev.twitch.tv/docs/api/reference#delete-conduit
|
|
1858
1859
|
*/
|
|
1859
|
-
deleteConduit:
|
|
1860
|
+
deleteConduit: (params, options = {}) => this.callApi({
|
|
1860
1861
|
path: "/eventsub/conduits",
|
|
1861
1862
|
method: "DELETE",
|
|
1862
1863
|
params,
|
|
@@ -1894,7 +1895,7 @@ var TwitchApi = class {
|
|
|
1894
1895
|
*
|
|
1895
1896
|
* @see https://dev.twitch.tv/docs/api/reference#get-conduit-shards
|
|
1896
1897
|
*/
|
|
1897
|
-
getConduitShards:
|
|
1898
|
+
getConduitShards: (params, options = {}) => this.callApi({
|
|
1898
1899
|
path: "/eventsub/conduits/shards",
|
|
1899
1900
|
params,
|
|
1900
1901
|
options
|
|
@@ -1933,7 +1934,7 @@ var TwitchApi = class {
|
|
|
1933
1934
|
*
|
|
1934
1935
|
* @see https://dev.twitch.tv/docs/api/reference#update-conduit-shards
|
|
1935
1936
|
*/
|
|
1936
|
-
updateConduitShards:
|
|
1937
|
+
updateConduitShards: (body, options = {}) => this.callApi({
|
|
1937
1938
|
path: "/eventsub/conduits/shards",
|
|
1938
1939
|
method: "PATCH",
|
|
1939
1940
|
body,
|
|
@@ -1966,7 +1967,7 @@ var TwitchApi = class {
|
|
|
1966
1967
|
*
|
|
1967
1968
|
* @see https://dev.twitch.tv/docs/api/reference#get-content-classification-labels
|
|
1968
1969
|
*/
|
|
1969
|
-
getContentClassificationLabels:
|
|
1970
|
+
getContentClassificationLabels: (params = null, options = {}) => this.callApi({
|
|
1970
1971
|
path: "/content_classification_labels",
|
|
1971
1972
|
params,
|
|
1972
1973
|
options
|
|
@@ -2028,7 +2029,7 @@ var TwitchApi = class {
|
|
|
2028
2029
|
*
|
|
2029
2030
|
* @see https://dev.twitch.tv/docs/api/reference#get-drops-entitlements
|
|
2030
2031
|
*/
|
|
2031
|
-
getDropsEntitlements:
|
|
2032
|
+
getDropsEntitlements: (params = null, options = {}) => this.callApi({
|
|
2032
2033
|
path: "/entitlements/drops",
|
|
2033
2034
|
params,
|
|
2034
2035
|
options
|
|
@@ -2074,7 +2075,7 @@ var TwitchApi = class {
|
|
|
2074
2075
|
*
|
|
2075
2076
|
* @see https://dev.twitch.tv/docs/api/reference#update-drops-entitlements
|
|
2076
2077
|
*/
|
|
2077
|
-
updateDropsEntitlements:
|
|
2078
|
+
updateDropsEntitlements: (body = null, options = {}) => this.callApi({
|
|
2078
2079
|
path: "/entitlements/drops",
|
|
2079
2080
|
method: "PATCH",
|
|
2080
2081
|
body,
|
|
@@ -2119,7 +2120,7 @@ var TwitchApi = class {
|
|
|
2119
2120
|
*
|
|
2120
2121
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-configuration-segment
|
|
2121
2122
|
*/
|
|
2122
|
-
getExtensionConfigurationSegment:
|
|
2123
|
+
getExtensionConfigurationSegment: (params, options = {}) => this.callApi({
|
|
2123
2124
|
path: "/extensions/configurations",
|
|
2124
2125
|
params,
|
|
2125
2126
|
options
|
|
@@ -2155,7 +2156,7 @@ var TwitchApi = class {
|
|
|
2155
2156
|
*
|
|
2156
2157
|
* @see https://dev.twitch.tv/docs/api/reference#set-extension-configuration-segment
|
|
2157
2158
|
*/
|
|
2158
|
-
setExtensionConfigurationSegment:
|
|
2159
|
+
setExtensionConfigurationSegment: (body, options = {}) => this.callApi({
|
|
2159
2160
|
path: "/extensions/configurations",
|
|
2160
2161
|
method: "PUT",
|
|
2161
2162
|
body,
|
|
@@ -2193,7 +2194,7 @@ var TwitchApi = class {
|
|
|
2193
2194
|
*
|
|
2194
2195
|
* @see https://dev.twitch.tv/docs/api/reference#set-extension-required-configuration
|
|
2195
2196
|
*/
|
|
2196
|
-
setExtensionRequiredConfiguration:
|
|
2197
|
+
setExtensionRequiredConfiguration: (params, body, options = {}) => this.callApi({
|
|
2197
2198
|
path: "/extensions/required_configuration",
|
|
2198
2199
|
method: "PUT",
|
|
2199
2200
|
params,
|
|
@@ -2269,7 +2270,7 @@ var TwitchApi = class {
|
|
|
2269
2270
|
*
|
|
2270
2271
|
* @see https://dev.twitch.tv/docs/api/reference#send-extension-pubsub-message
|
|
2271
2272
|
*/
|
|
2272
|
-
sendExtensionPubSubMessage:
|
|
2273
|
+
sendExtensionPubSubMessage: (body, options = {}) => this.callApi({
|
|
2273
2274
|
path: "/extensions/pubsub",
|
|
2274
2275
|
method: "POST",
|
|
2275
2276
|
body,
|
|
@@ -2311,7 +2312,7 @@ var TwitchApi = class {
|
|
|
2311
2312
|
*
|
|
2312
2313
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-live-channels
|
|
2313
2314
|
*/
|
|
2314
|
-
getExtensionLiveChannels:
|
|
2315
|
+
getExtensionLiveChannels: (params, options = {}) => this.callApi({
|
|
2315
2316
|
path: "/extensions/live",
|
|
2316
2317
|
params,
|
|
2317
2318
|
options
|
|
@@ -2345,7 +2346,7 @@ var TwitchApi = class {
|
|
|
2345
2346
|
*
|
|
2346
2347
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-secrets
|
|
2347
2348
|
*/
|
|
2348
|
-
getExtensionSecrets:
|
|
2349
|
+
getExtensionSecrets: (options = {}) => this.callApi({
|
|
2349
2350
|
path: "/extensions/jwt/secrets",
|
|
2350
2351
|
options
|
|
2351
2352
|
}),
|
|
@@ -2379,7 +2380,7 @@ var TwitchApi = class {
|
|
|
2379
2380
|
*
|
|
2380
2381
|
* @see https://dev.twitch.tv/docs/api/reference#create-extension-secret
|
|
2381
2382
|
*/
|
|
2382
|
-
createExtensionSecret:
|
|
2383
|
+
createExtensionSecret: (params, options = {}) => this.callApi({
|
|
2383
2384
|
path: "/extensions/jwt/secrets",
|
|
2384
2385
|
method: "POST",
|
|
2385
2386
|
params,
|
|
@@ -2421,7 +2422,7 @@ var TwitchApi = class {
|
|
|
2421
2422
|
*
|
|
2422
2423
|
* @see https://dev.twitch.tv/docs/api/reference#send-extension-chat-message
|
|
2423
2424
|
*/
|
|
2424
|
-
sendExtensionChatMessage:
|
|
2425
|
+
sendExtensionChatMessage: (params, body, options = {}) => this.callApi({
|
|
2425
2426
|
path: "/extensions/chat",
|
|
2426
2427
|
method: "POST",
|
|
2427
2428
|
params,
|
|
@@ -2462,7 +2463,7 @@ var TwitchApi = class {
|
|
|
2462
2463
|
*
|
|
2463
2464
|
* @see https://dev.twitch.tv/docs/api/reference#get-extensions
|
|
2464
2465
|
*/
|
|
2465
|
-
getExtensions:
|
|
2466
|
+
getExtensions: (params, options = {}) => this.callApi({
|
|
2466
2467
|
path: "/extensions",
|
|
2467
2468
|
params,
|
|
2468
2469
|
options
|
|
@@ -2500,7 +2501,7 @@ var TwitchApi = class {
|
|
|
2500
2501
|
*
|
|
2501
2502
|
* @see https://dev.twitch.tv/docs/api/reference#get-released-extensions
|
|
2502
2503
|
*/
|
|
2503
|
-
getReleasedExtensions:
|
|
2504
|
+
getReleasedExtensions: (params, options = {}) => this.callApi({
|
|
2504
2505
|
path: "/extensions/released",
|
|
2505
2506
|
params,
|
|
2506
2507
|
options
|
|
@@ -2534,7 +2535,7 @@ var TwitchApi = class {
|
|
|
2534
2535
|
*
|
|
2535
2536
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-bits-products
|
|
2536
2537
|
*/
|
|
2537
|
-
getExtensionBitsProducts:
|
|
2538
|
+
getExtensionBitsProducts: (params = null, options = {}) => this.callApi({
|
|
2538
2539
|
path: "/bits/extensions",
|
|
2539
2540
|
params,
|
|
2540
2541
|
options
|
|
@@ -2575,7 +2576,7 @@ var TwitchApi = class {
|
|
|
2575
2576
|
*
|
|
2576
2577
|
* @see https://dev.twitch.tv/docs/api/reference#update-extension-bits-product
|
|
2577
2578
|
*/
|
|
2578
|
-
updateExtensionBitsProduct:
|
|
2579
|
+
updateExtensionBitsProduct: (body, options = {}) => this.callApi({
|
|
2579
2580
|
path: "/bits/extensions",
|
|
2580
2581
|
method: "PUT",
|
|
2581
2582
|
body,
|
|
@@ -2639,7 +2640,7 @@ var TwitchApi = class {
|
|
|
2639
2640
|
*
|
|
2640
2641
|
* @see https://dev.twitch.tv/docs/api/reference#create-eventsub-subscription
|
|
2641
2642
|
*/
|
|
2642
|
-
createEventSubSubscription:
|
|
2643
|
+
createEventSubSubscription: (body, options = {}) => this.callApi({
|
|
2643
2644
|
path: "/eventsub/subscriptions",
|
|
2644
2645
|
method: "POST",
|
|
2645
2646
|
body,
|
|
@@ -2680,7 +2681,7 @@ var TwitchApi = class {
|
|
|
2680
2681
|
*
|
|
2681
2682
|
* @see https://dev.twitch.tv/docs/api/reference#delete-eventsub-subscription
|
|
2682
2683
|
*/
|
|
2683
|
-
deleteEventSubSubscription:
|
|
2684
|
+
deleteEventSubSubscription: (params, options = {}) => this.callApi({
|
|
2684
2685
|
path: "/eventsub/subscriptions",
|
|
2685
2686
|
method: "DELETE",
|
|
2686
2687
|
params,
|
|
@@ -2724,7 +2725,7 @@ var TwitchApi = class {
|
|
|
2724
2725
|
*
|
|
2725
2726
|
* @see https://dev.twitch.tv/docs/api/reference#get-eventsub-subscriptions
|
|
2726
2727
|
*/
|
|
2727
|
-
getEventSubSubscriptions:
|
|
2728
|
+
getEventSubSubscriptions: (params = null, options = {}) => this.callApi({
|
|
2728
2729
|
path: "/eventsub/subscriptions",
|
|
2729
2730
|
params,
|
|
2730
2731
|
options
|
|
@@ -2761,7 +2762,7 @@ var TwitchApi = class {
|
|
|
2761
2762
|
*
|
|
2762
2763
|
* @see https://dev.twitch.tv/docs/api/reference#get-top-games
|
|
2763
2764
|
*/
|
|
2764
|
-
getTopGames:
|
|
2765
|
+
getTopGames: (params = null, options = {}) => this.callApi({
|
|
2765
2766
|
path: "/games/top",
|
|
2766
2767
|
params,
|
|
2767
2768
|
options
|
|
@@ -2798,7 +2799,7 @@ var TwitchApi = class {
|
|
|
2798
2799
|
*
|
|
2799
2800
|
* @see https://dev.twitch.tv/docs/api/reference#get-games
|
|
2800
2801
|
*/
|
|
2801
|
-
getGames:
|
|
2802
|
+
getGames: (params = null, options = {}) => this.callApi({
|
|
2802
2803
|
path: "/games",
|
|
2803
2804
|
params,
|
|
2804
2805
|
options
|
|
@@ -2838,7 +2839,7 @@ var TwitchApi = class {
|
|
|
2838
2839
|
*
|
|
2839
2840
|
* @see https://dev.twitch.tv/docs/api/reference#get-creator-goals
|
|
2840
2841
|
*/
|
|
2841
|
-
getCreatorGoals:
|
|
2842
|
+
getCreatorGoals: (params, options = {}) => this.callApi({
|
|
2842
2843
|
path: "/goals",
|
|
2843
2844
|
params,
|
|
2844
2845
|
options
|
|
@@ -2872,7 +2873,7 @@ var TwitchApi = class {
|
|
|
2872
2873
|
*
|
|
2873
2874
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-guest-star-settings
|
|
2874
2875
|
*/
|
|
2875
|
-
getChannelGuestStarSettings:
|
|
2876
|
+
getChannelGuestStarSettings: (params, options = {}) => this.callApi({
|
|
2876
2877
|
path: "/guest_star/channel_settings",
|
|
2877
2878
|
params,
|
|
2878
2879
|
options
|
|
@@ -2903,7 +2904,7 @@ var TwitchApi = class {
|
|
|
2903
2904
|
*
|
|
2904
2905
|
* @see https://dev.twitch.tv/docs/api/reference#update-channel-guest-star-settings
|
|
2905
2906
|
*/
|
|
2906
|
-
updateChannelGuestStarSettings:
|
|
2907
|
+
updateChannelGuestStarSettings: (params, body = null, options = {}) => this.callApi({
|
|
2907
2908
|
path: "/guest_star/channel_settings",
|
|
2908
2909
|
method: "PUT",
|
|
2909
2910
|
params,
|
|
@@ -2937,7 +2938,7 @@ var TwitchApi = class {
|
|
|
2937
2938
|
*
|
|
2938
2939
|
* @see https://dev.twitch.tv/docs/api/reference#get-guest-star-session
|
|
2939
2940
|
*/
|
|
2940
|
-
getGuestStarSession:
|
|
2941
|
+
getGuestStarSession: (params, options = {}) => this.callApi({
|
|
2941
2942
|
path: "/guest_star/session",
|
|
2942
2943
|
params,
|
|
2943
2944
|
options
|
|
@@ -2973,7 +2974,7 @@ var TwitchApi = class {
|
|
|
2973
2974
|
*
|
|
2974
2975
|
* @see https://dev.twitch.tv/docs/api/reference#create-guest-star-session
|
|
2975
2976
|
*/
|
|
2976
|
-
createGuestStarSession:
|
|
2977
|
+
createGuestStarSession: (params, options = {}) => this.callApi({
|
|
2977
2978
|
path: "/guest_star/session",
|
|
2978
2979
|
method: "POST",
|
|
2979
2980
|
params,
|
|
@@ -3007,7 +3008,7 @@ var TwitchApi = class {
|
|
|
3007
3008
|
*
|
|
3008
3009
|
* @see https://dev.twitch.tv/docs/api/reference#end-guest-star-session
|
|
3009
3010
|
*/
|
|
3010
|
-
endGuestStarSession:
|
|
3011
|
+
endGuestStarSession: (params, options = {}) => this.callApi({
|
|
3011
3012
|
path: "/guest_star/session",
|
|
3012
3013
|
method: "DELETE",
|
|
3013
3014
|
params,
|
|
@@ -3036,7 +3037,7 @@ var TwitchApi = class {
|
|
|
3036
3037
|
*
|
|
3037
3038
|
* @see https://dev.twitch.tv/docs/api/reference#get-guest-star-invites
|
|
3038
3039
|
*/
|
|
3039
|
-
getGuestStarInvites:
|
|
3040
|
+
getGuestStarInvites: (params, options = {}) => this.callApi({
|
|
3040
3041
|
path: "/guest_star/invites",
|
|
3041
3042
|
params,
|
|
3042
3043
|
options
|
|
@@ -3072,7 +3073,7 @@ var TwitchApi = class {
|
|
|
3072
3073
|
*
|
|
3073
3074
|
* @see https://dev.twitch.tv/docs/api/reference#send-guest-star-invite
|
|
3074
3075
|
*/
|
|
3075
|
-
sendGuestStarInvite:
|
|
3076
|
+
sendGuestStarInvite: (params, options = {}) => this.callApi({
|
|
3076
3077
|
path: "/guest_star/invites",
|
|
3077
3078
|
method: "POST",
|
|
3078
3079
|
params,
|
|
@@ -3107,7 +3108,7 @@ var TwitchApi = class {
|
|
|
3107
3108
|
*
|
|
3108
3109
|
* @see https://dev.twitch.tv/docs/api/reference#delete-guest-star-invite
|
|
3109
3110
|
*/
|
|
3110
|
-
deleteGuestStarInvite:
|
|
3111
|
+
deleteGuestStarInvite: (params, options = {}) => this.callApi({
|
|
3111
3112
|
path: "/guest_star/invites",
|
|
3112
3113
|
method: "DELETE",
|
|
3113
3114
|
params,
|
|
@@ -3152,7 +3153,7 @@ var TwitchApi = class {
|
|
|
3152
3153
|
*
|
|
3153
3154
|
* @see https://dev.twitch.tv/docs/api/reference#assign-guest-star-slot
|
|
3154
3155
|
*/
|
|
3155
|
-
assignGuestStarSlot:
|
|
3156
|
+
assignGuestStarSlot: (params, options = {}) => this.callApi({
|
|
3156
3157
|
path: "/guest_star/slot",
|
|
3157
3158
|
method: "POST",
|
|
3158
3159
|
params,
|
|
@@ -3184,7 +3185,7 @@ var TwitchApi = class {
|
|
|
3184
3185
|
*
|
|
3185
3186
|
* @see https://dev.twitch.tv/docs/api/reference#update-guest-star-slot
|
|
3186
3187
|
*/
|
|
3187
|
-
updateGuestStarSlot:
|
|
3188
|
+
updateGuestStarSlot: (params, options = {}) => this.callApi({
|
|
3188
3189
|
path: "/guest_star/slot",
|
|
3189
3190
|
method: "PATCH",
|
|
3190
3191
|
params,
|
|
@@ -3226,7 +3227,7 @@ var TwitchApi = class {
|
|
|
3226
3227
|
*
|
|
3227
3228
|
* @see https://dev.twitch.tv/docs/api/reference#delete-guest-star-slot
|
|
3228
3229
|
*/
|
|
3229
|
-
deleteGuestStarSlot:
|
|
3230
|
+
deleteGuestStarSlot: (params, options = {}) => this.callApi({
|
|
3230
3231
|
path: "/guest_star/slot",
|
|
3231
3232
|
method: "DELETE",
|
|
3232
3233
|
params,
|
|
@@ -3264,7 +3265,7 @@ var TwitchApi = class {
|
|
|
3264
3265
|
*
|
|
3265
3266
|
* @see https://dev.twitch.tv/docs/api/reference#update-guest-star-slot-settings
|
|
3266
3267
|
*/
|
|
3267
|
-
updateGuestStarSlotSettings:
|
|
3268
|
+
updateGuestStarSlotSettings: (params, options = {}) => this.callApi({
|
|
3268
3269
|
path: "/guest_star/slot_settings",
|
|
3269
3270
|
method: "PATCH",
|
|
3270
3271
|
params,
|
|
@@ -3301,7 +3302,7 @@ var TwitchApi = class {
|
|
|
3301
3302
|
*
|
|
3302
3303
|
* @see https://dev.twitch.tv/docs/api/reference#get-hype-train-events
|
|
3303
3304
|
*/
|
|
3304
|
-
getHypeTrainEvents:
|
|
3305
|
+
getHypeTrainEvents: (params, options = {}) => this.callApi({
|
|
3305
3306
|
path: "/hypetrain/events",
|
|
3306
3307
|
params,
|
|
3307
3308
|
options
|
|
@@ -3362,7 +3363,7 @@ var TwitchApi = class {
|
|
|
3362
3363
|
*
|
|
3363
3364
|
* @see https://dev.twitch.tv/docs/api/reference#check-automod-status
|
|
3364
3365
|
*/
|
|
3365
|
-
checkAutoModStatus:
|
|
3366
|
+
checkAutoModStatus: (params, body, options = {}) => this.callApi({
|
|
3366
3367
|
path: "/moderation/enforcements/status",
|
|
3367
3368
|
method: "POST",
|
|
3368
3369
|
params,
|
|
@@ -3413,7 +3414,7 @@ var TwitchApi = class {
|
|
|
3413
3414
|
*
|
|
3414
3415
|
* @see https://dev.twitch.tv/docs/api/reference#manage-held-automod-messages
|
|
3415
3416
|
*/
|
|
3416
|
-
manageHeldAutoModMessages:
|
|
3417
|
+
manageHeldAutoModMessages: (body, options = {}) => this.callApi({
|
|
3417
3418
|
path: "/moderation/automod/message",
|
|
3418
3419
|
method: "POST",
|
|
3419
3420
|
body,
|
|
@@ -3455,7 +3456,7 @@ var TwitchApi = class {
|
|
|
3455
3456
|
*
|
|
3456
3457
|
* @see https://dev.twitch.tv/docs/api/reference#get-automod-settings
|
|
3457
3458
|
*/
|
|
3458
|
-
getAutoModSettings:
|
|
3459
|
+
getAutoModSettings: (params, options = {}) => this.callApi({
|
|
3459
3460
|
path: "/moderation/automod/settings",
|
|
3460
3461
|
params,
|
|
3461
3462
|
options
|
|
@@ -3512,7 +3513,7 @@ var TwitchApi = class {
|
|
|
3512
3513
|
*
|
|
3513
3514
|
* @see https://dev.twitch.tv/docs/api/reference#update-automod-settings
|
|
3514
3515
|
*/
|
|
3515
|
-
updateAutoModSettings:
|
|
3516
|
+
updateAutoModSettings: (params, body = null, options = {}) => this.callApi({
|
|
3516
3517
|
path: "/moderation/automod/settings",
|
|
3517
3518
|
method: "PUT",
|
|
3518
3519
|
params,
|
|
@@ -3550,7 +3551,7 @@ var TwitchApi = class {
|
|
|
3550
3551
|
*
|
|
3551
3552
|
* @see https://dev.twitch.tv/docs/api/reference#get-banned-users
|
|
3552
3553
|
*/
|
|
3553
|
-
getBannedUsers:
|
|
3554
|
+
getBannedUsers: (params, options = {}) => this.callApi({
|
|
3554
3555
|
path: "/moderation/banned",
|
|
3555
3556
|
params,
|
|
3556
3557
|
options
|
|
@@ -3611,7 +3612,7 @@ var TwitchApi = class {
|
|
|
3611
3612
|
*
|
|
3612
3613
|
* @see https://dev.twitch.tv/docs/api/reference#ban-user
|
|
3613
3614
|
*/
|
|
3614
|
-
banUser:
|
|
3615
|
+
banUser: (params, body, options = {}) => this.callApi({
|
|
3615
3616
|
path: "/moderation/bans",
|
|
3616
3617
|
method: "POST",
|
|
3617
3618
|
params,
|
|
@@ -3666,14 +3667,14 @@ var TwitchApi = class {
|
|
|
3666
3667
|
*
|
|
3667
3668
|
* @see https://dev.twitch.tv/docs/api/reference#unban-user
|
|
3668
3669
|
*/
|
|
3669
|
-
unbanUser:
|
|
3670
|
+
unbanUser: (params, options = {}) => this.callApi({
|
|
3670
3671
|
path: "/moderation/bans",
|
|
3671
3672
|
method: "DELETE",
|
|
3672
3673
|
params,
|
|
3673
3674
|
options
|
|
3674
3675
|
}),
|
|
3675
3676
|
/**
|
|
3676
|
-
*
|
|
3677
|
+
* NEW Gets a list of unban requests for a broadcaster’s channel.
|
|
3677
3678
|
*
|
|
3678
3679
|
* __Authorization:__
|
|
3679
3680
|
*
|
|
@@ -3708,18 +3709,18 @@ var TwitchApi = class {
|
|
|
3708
3709
|
*
|
|
3709
3710
|
* @see https://dev.twitch.tv/docs/api/reference#get-unban-requests
|
|
3710
3711
|
*/
|
|
3711
|
-
getUnbanRequests:
|
|
3712
|
+
getUnbanRequests: (params, options = {}) => this.callApi({
|
|
3712
3713
|
path: "/moderation/unban_requests",
|
|
3713
3714
|
params,
|
|
3714
3715
|
options
|
|
3715
3716
|
}),
|
|
3716
3717
|
/**
|
|
3717
|
-
*
|
|
3718
|
+
* NEW Resolves an unban request by approving or denying it.
|
|
3718
3719
|
*
|
|
3719
3720
|
* __Authorization:__
|
|
3720
3721
|
*
|
|
3721
|
-
* * Requires a user access token that includes the **moderator:manage:unban
|
|
3722
|
-
* * Query parameter `moderator_id` must match the `user_id` in the
|
|
3722
|
+
* * Requires a user access token that includes the **moderator:manage:unban\\\_requests** scope.
|
|
3723
|
+
* * Query parameter `moderator_id` must match the `user_id` in the[user access token](https://dev.twitch.tv/docs/authentication/#user-access-tokens).
|
|
3723
3724
|
*
|
|
3724
3725
|
* __URL:__
|
|
3725
3726
|
*
|
|
@@ -3755,7 +3756,7 @@ var TwitchApi = class {
|
|
|
3755
3756
|
*
|
|
3756
3757
|
* @see https://dev.twitch.tv/docs/api/reference#resolve-unban-requests
|
|
3757
3758
|
*/
|
|
3758
|
-
resolveUnbanRequests:
|
|
3759
|
+
resolveUnbanRequests: (params, options = {}) => this.callApi({
|
|
3759
3760
|
path: "/moderation/unban_requests",
|
|
3760
3761
|
method: "PATCH",
|
|
3761
3762
|
params,
|
|
@@ -3797,7 +3798,7 @@ var TwitchApi = class {
|
|
|
3797
3798
|
*
|
|
3798
3799
|
* @see https://dev.twitch.tv/docs/api/reference#get-blocked-terms
|
|
3799
3800
|
*/
|
|
3800
|
-
getBlockedTerms:
|
|
3801
|
+
getBlockedTerms: (params, options = {}) => this.callApi({
|
|
3801
3802
|
path: "/moderation/blocked_terms",
|
|
3802
3803
|
params,
|
|
3803
3804
|
options
|
|
@@ -3840,7 +3841,7 @@ var TwitchApi = class {
|
|
|
3840
3841
|
*
|
|
3841
3842
|
* @see https://dev.twitch.tv/docs/api/reference#add-blocked-term
|
|
3842
3843
|
*/
|
|
3843
|
-
addBlockedTerm:
|
|
3844
|
+
addBlockedTerm: (params, body, options = {}) => this.callApi({
|
|
3844
3845
|
path: "/moderation/blocked_terms",
|
|
3845
3846
|
method: "POST",
|
|
3846
3847
|
params,
|
|
@@ -3884,7 +3885,7 @@ var TwitchApi = class {
|
|
|
3884
3885
|
*
|
|
3885
3886
|
* @see https://dev.twitch.tv/docs/api/reference#remove-blocked-term
|
|
3886
3887
|
*/
|
|
3887
|
-
removeBlockedTerm:
|
|
3888
|
+
removeBlockedTerm: (params, options = {}) => this.callApi({
|
|
3888
3889
|
path: "/moderation/blocked_terms",
|
|
3889
3890
|
method: "DELETE",
|
|
3890
3891
|
params,
|
|
@@ -3930,7 +3931,7 @@ var TwitchApi = class {
|
|
|
3930
3931
|
*
|
|
3931
3932
|
* @see https://dev.twitch.tv/docs/api/reference#delete-chat-messages
|
|
3932
3933
|
*/
|
|
3933
|
-
deleteChatMessages:
|
|
3934
|
+
deleteChatMessages: (params, options = {}) => this.callApi({
|
|
3934
3935
|
path: "/moderation/chat",
|
|
3935
3936
|
method: "DELETE",
|
|
3936
3937
|
params,
|
|
@@ -3962,7 +3963,7 @@ var TwitchApi = class {
|
|
|
3962
3963
|
*
|
|
3963
3964
|
* @see https://dev.twitch.tv/docs/api/reference#get-moderated-channels
|
|
3964
3965
|
*/
|
|
3965
|
-
getModeratedChannels:
|
|
3966
|
+
getModeratedChannels: (params, options = {}) => this.callApi({
|
|
3966
3967
|
path: "/moderation/channels",
|
|
3967
3968
|
params,
|
|
3968
3969
|
options
|
|
@@ -3998,7 +3999,7 @@ var TwitchApi = class {
|
|
|
3998
3999
|
*
|
|
3999
4000
|
* @see https://dev.twitch.tv/docs/api/reference#get-moderators
|
|
4000
4001
|
*/
|
|
4001
|
-
getModerators:
|
|
4002
|
+
getModerators: (params, options = {}) => this.callApi({
|
|
4002
4003
|
path: "/moderation/moderators",
|
|
4003
4004
|
params,
|
|
4004
4005
|
options
|
|
@@ -4047,7 +4048,7 @@ var TwitchApi = class {
|
|
|
4047
4048
|
*
|
|
4048
4049
|
* @see https://dev.twitch.tv/docs/api/reference#add-channel-moderator
|
|
4049
4050
|
*/
|
|
4050
|
-
addChannelModerator:
|
|
4051
|
+
addChannelModerator: (params, options = {}) => this.callApi({
|
|
4051
4052
|
path: "/moderation/moderators",
|
|
4052
4053
|
method: "POST",
|
|
4053
4054
|
params,
|
|
@@ -4092,7 +4093,7 @@ var TwitchApi = class {
|
|
|
4092
4093
|
*
|
|
4093
4094
|
* @see https://dev.twitch.tv/docs/api/reference#remove-channel-moderator
|
|
4094
4095
|
*/
|
|
4095
|
-
removeChannelModerator:
|
|
4096
|
+
removeChannelModerator: (params, options = {}) => this.callApi({
|
|
4096
4097
|
path: "/moderation/moderators",
|
|
4097
4098
|
method: "DELETE",
|
|
4098
4099
|
params,
|
|
@@ -4131,7 +4132,7 @@ var TwitchApi = class {
|
|
|
4131
4132
|
*
|
|
4132
4133
|
* @see https://dev.twitch.tv/docs/api/reference#get-vips
|
|
4133
4134
|
*/
|
|
4134
|
-
getVIPs:
|
|
4135
|
+
getVIPs: (params, options = {}) => this.callApi({
|
|
4135
4136
|
path: "/channels/vips",
|
|
4136
4137
|
params,
|
|
4137
4138
|
options
|
|
@@ -4197,7 +4198,7 @@ var TwitchApi = class {
|
|
|
4197
4198
|
*
|
|
4198
4199
|
* @see https://dev.twitch.tv/docs/api/reference#add-channel-vip
|
|
4199
4200
|
*/
|
|
4200
|
-
addChannelVIP:
|
|
4201
|
+
addChannelVIP: (params, options = {}) => this.callApi({
|
|
4201
4202
|
path: "/channels/vips",
|
|
4202
4203
|
method: "POST",
|
|
4203
4204
|
params,
|
|
@@ -4256,7 +4257,7 @@ var TwitchApi = class {
|
|
|
4256
4257
|
*
|
|
4257
4258
|
* @see https://dev.twitch.tv/docs/api/reference#remove-channel-vip
|
|
4258
4259
|
*/
|
|
4259
|
-
removeChannelVIP:
|
|
4260
|
+
removeChannelVIP: (params, options = {}) => this.callApi({
|
|
4260
4261
|
path: "/channels/vips",
|
|
4261
4262
|
method: "DELETE",
|
|
4262
4263
|
params,
|
|
@@ -4302,7 +4303,7 @@ var TwitchApi = class {
|
|
|
4302
4303
|
*
|
|
4303
4304
|
* @see https://dev.twitch.tv/docs/api/reference#update-shield-mode-status
|
|
4304
4305
|
*/
|
|
4305
|
-
updateShieldModeStatus:
|
|
4306
|
+
updateShieldModeStatus: (params, body, options = {}) => this.callApi({
|
|
4306
4307
|
path: "/moderation/shield_mode",
|
|
4307
4308
|
method: "PUT",
|
|
4308
4309
|
params,
|
|
@@ -4347,10 +4348,69 @@ var TwitchApi = class {
|
|
|
4347
4348
|
*
|
|
4348
4349
|
* @see https://dev.twitch.tv/docs/api/reference#get-shield-mode-status
|
|
4349
4350
|
*/
|
|
4350
|
-
getShieldModeStatus:
|
|
4351
|
+
getShieldModeStatus: (params, options = {}) => this.callApi({
|
|
4351
4352
|
path: "/moderation/shield_mode",
|
|
4352
4353
|
params,
|
|
4353
4354
|
options
|
|
4355
|
+
}),
|
|
4356
|
+
/**
|
|
4357
|
+
* NEW Warns a user in the specified broadcaster’s chat room, preventing them from chat interaction until the warning is acknowledged. New warnings can be issued to a user when they already have a warning in the channel (new warning will replace old warning).
|
|
4358
|
+
*
|
|
4359
|
+
* __Authorization:__
|
|
4360
|
+
*
|
|
4361
|
+
* Requires a user access token that includes the **moderator:manage:warnings** scope. Query parameter `moderator_id` must match the `user_id` in the [user access token](https://dev.twitch.tv/docs/authentication/#user-access-tokens).
|
|
4362
|
+
*
|
|
4363
|
+
* __URL:__
|
|
4364
|
+
*
|
|
4365
|
+
* `POST https://api.twitch.tv/helix/moderation/warnings`
|
|
4366
|
+
*
|
|
4367
|
+
* __Response Codes:__
|
|
4368
|
+
*
|
|
4369
|
+
* _200 OK_
|
|
4370
|
+
*
|
|
4371
|
+
* Successfully warn a user.
|
|
4372
|
+
*
|
|
4373
|
+
* _400 Bad Request_
|
|
4374
|
+
*
|
|
4375
|
+
* * The _broadcaster\_id_ query parameter is required.
|
|
4376
|
+
* * The _moderator\_id_ query parameter is required.
|
|
4377
|
+
* * The _user\_id_ query parameter is required.
|
|
4378
|
+
* * The _reason_ query parameter is required.
|
|
4379
|
+
* * The text in the _reason_ field is too long.
|
|
4380
|
+
* * The user specified in the _user\_id_ may not be warned.
|
|
4381
|
+
*
|
|
4382
|
+
* _401 Unauthorized_
|
|
4383
|
+
*
|
|
4384
|
+
* * The ID in _moderator\_id_ must match the user ID in the user access token.
|
|
4385
|
+
* * The Authorization header is required and must contain a user access token.
|
|
4386
|
+
* * The user access token must include the **moderator:manage:warnings** scope.
|
|
4387
|
+
* * The access token is not valid.
|
|
4388
|
+
* * The client ID specified in the Client-Id header does not match the client ID specified in the access token.
|
|
4389
|
+
*
|
|
4390
|
+
* _403 Forbidden_
|
|
4391
|
+
*
|
|
4392
|
+
* The user in _moderator\_id_ is not one of the broadcaster’s moderators.
|
|
4393
|
+
*
|
|
4394
|
+
* _409 Conflict_
|
|
4395
|
+
*
|
|
4396
|
+
* You may not update the user’s warning state while someone else is updating the state. For example, someone else is currently warning the user or the user is acknowledging an existing warning. Please retry your request.
|
|
4397
|
+
*
|
|
4398
|
+
* _429 Too Many Requests_
|
|
4399
|
+
*
|
|
4400
|
+
* The app has exceeded the number of requests it may make per minute for this broadcaster.
|
|
4401
|
+
*
|
|
4402
|
+
* _500 Internal Server Error_
|
|
4403
|
+
*
|
|
4404
|
+
* Internal Server Error.
|
|
4405
|
+
*
|
|
4406
|
+
* @see https://dev.twitch.tv/docs/api/reference#warn-chat-user
|
|
4407
|
+
*/
|
|
4408
|
+
warnChatUser: (params, body, options = {}) => this.callApi({
|
|
4409
|
+
path: "/moderation/warnings",
|
|
4410
|
+
method: "POST",
|
|
4411
|
+
params,
|
|
4412
|
+
body,
|
|
4413
|
+
options
|
|
4354
4414
|
})
|
|
4355
4415
|
};
|
|
4356
4416
|
polls = {
|
|
@@ -4391,7 +4451,7 @@ var TwitchApi = class {
|
|
|
4391
4451
|
*
|
|
4392
4452
|
* @see https://dev.twitch.tv/docs/api/reference#get-polls
|
|
4393
4453
|
*/
|
|
4394
|
-
getPolls:
|
|
4454
|
+
getPolls: (params, options = {}) => this.callApi({
|
|
4395
4455
|
path: "/polls",
|
|
4396
4456
|
params,
|
|
4397
4457
|
options
|
|
@@ -4440,7 +4500,7 @@ var TwitchApi = class {
|
|
|
4440
4500
|
*
|
|
4441
4501
|
* @see https://dev.twitch.tv/docs/api/reference#create-poll
|
|
4442
4502
|
*/
|
|
4443
|
-
createPoll:
|
|
4503
|
+
createPoll: (body, options = {}) => this.callApi({
|
|
4444
4504
|
path: "/polls",
|
|
4445
4505
|
method: "POST",
|
|
4446
4506
|
body,
|
|
@@ -4481,7 +4541,7 @@ var TwitchApi = class {
|
|
|
4481
4541
|
*
|
|
4482
4542
|
* @see https://dev.twitch.tv/docs/api/reference#end-poll
|
|
4483
4543
|
*/
|
|
4484
|
-
endPoll:
|
|
4544
|
+
endPoll: (body, options = {}) => this.callApi({
|
|
4485
4545
|
path: "/polls",
|
|
4486
4546
|
method: "PATCH",
|
|
4487
4547
|
body,
|
|
@@ -4520,7 +4580,7 @@ var TwitchApi = class {
|
|
|
4520
4580
|
*
|
|
4521
4581
|
* @see https://dev.twitch.tv/docs/api/reference#get-predictions
|
|
4522
4582
|
*/
|
|
4523
|
-
getPredictions:
|
|
4583
|
+
getPredictions: (params, options = {}) => this.callApi({
|
|
4524
4584
|
path: "/predictions",
|
|
4525
4585
|
params,
|
|
4526
4586
|
options
|
|
@@ -4569,7 +4629,7 @@ var TwitchApi = class {
|
|
|
4569
4629
|
*
|
|
4570
4630
|
* @see https://dev.twitch.tv/docs/api/reference#create-prediction
|
|
4571
4631
|
*/
|
|
4572
|
-
createPrediction:
|
|
4632
|
+
createPrediction: (body, options = {}) => this.callApi({
|
|
4573
4633
|
path: "/predictions",
|
|
4574
4634
|
method: "POST",
|
|
4575
4635
|
body,
|
|
@@ -4617,7 +4677,7 @@ var TwitchApi = class {
|
|
|
4617
4677
|
*
|
|
4618
4678
|
* @see https://dev.twitch.tv/docs/api/reference#end-prediction
|
|
4619
4679
|
*/
|
|
4620
|
-
endPrediction:
|
|
4680
|
+
endPrediction: (body, options = {}) => this.callApi({
|
|
4621
4681
|
path: "/predictions",
|
|
4622
4682
|
method: "PATCH",
|
|
4623
4683
|
body,
|
|
@@ -4681,7 +4741,7 @@ var TwitchApi = class {
|
|
|
4681
4741
|
*
|
|
4682
4742
|
* @see https://dev.twitch.tv/docs/api/reference#start-a-raid
|
|
4683
4743
|
*/
|
|
4684
|
-
startRaid:
|
|
4744
|
+
startRaid: (params = null, options = {}) => this.callApi({
|
|
4685
4745
|
path: "/raids",
|
|
4686
4746
|
method: "POST",
|
|
4687
4747
|
params,
|
|
@@ -4730,7 +4790,7 @@ var TwitchApi = class {
|
|
|
4730
4790
|
*
|
|
4731
4791
|
* @see https://dev.twitch.tv/docs/api/reference#cancel-a-raid
|
|
4732
4792
|
*/
|
|
4733
|
-
cancelRaid:
|
|
4793
|
+
cancelRaid: (params, options = {}) => this.callApi({
|
|
4734
4794
|
path: "/raids",
|
|
4735
4795
|
method: "DELETE",
|
|
4736
4796
|
params,
|
|
@@ -4778,7 +4838,7 @@ var TwitchApi = class {
|
|
|
4778
4838
|
*
|
|
4779
4839
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-stream-schedule
|
|
4780
4840
|
*/
|
|
4781
|
-
getChannelStreamSchedule:
|
|
4841
|
+
getChannelStreamSchedule: (params, options = {}) => this.callApi({
|
|
4782
4842
|
path: "/schedule",
|
|
4783
4843
|
params,
|
|
4784
4844
|
options
|
|
@@ -4813,7 +4873,7 @@ var TwitchApi = class {
|
|
|
4813
4873
|
*
|
|
4814
4874
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-icalendar
|
|
4815
4875
|
*/
|
|
4816
|
-
getChannelICalendar:
|
|
4876
|
+
getChannelICalendar: (params, options = {}) => this.callApi({
|
|
4817
4877
|
path: "/schedule/icalendar",
|
|
4818
4878
|
params,
|
|
4819
4879
|
options
|
|
@@ -4857,7 +4917,7 @@ var TwitchApi = class {
|
|
|
4857
4917
|
*
|
|
4858
4918
|
* @see https://dev.twitch.tv/docs/api/reference#update-channel-stream-schedule
|
|
4859
4919
|
*/
|
|
4860
|
-
updateChannelStreamSchedule:
|
|
4920
|
+
updateChannelStreamSchedule: (params, options = {}) => this.callApi({
|
|
4861
4921
|
path: "/schedule/settings",
|
|
4862
4922
|
method: "PATCH",
|
|
4863
4923
|
params,
|
|
@@ -4904,7 +4964,7 @@ var TwitchApi = class {
|
|
|
4904
4964
|
*
|
|
4905
4965
|
* @see https://dev.twitch.tv/docs/api/reference#create-channel-stream-schedule-segment
|
|
4906
4966
|
*/
|
|
4907
|
-
createChannelStreamScheduleSegment:
|
|
4967
|
+
createChannelStreamScheduleSegment: (params, body, options = {}) => this.callApi({
|
|
4908
4968
|
path: "/schedule/segment",
|
|
4909
4969
|
method: "POST",
|
|
4910
4970
|
params,
|
|
@@ -4956,7 +5016,7 @@ var TwitchApi = class {
|
|
|
4956
5016
|
*
|
|
4957
5017
|
* @see https://dev.twitch.tv/docs/api/reference#update-channel-stream-schedule-segment
|
|
4958
5018
|
*/
|
|
4959
|
-
updateChannelStreamScheduleSegment:
|
|
5019
|
+
updateChannelStreamScheduleSegment: (params, body = null, options = {}) => this.callApi({
|
|
4960
5020
|
path: "/schedule/segment",
|
|
4961
5021
|
method: "PATCH",
|
|
4962
5022
|
params,
|
|
@@ -4999,7 +5059,7 @@ var TwitchApi = class {
|
|
|
4999
5059
|
*
|
|
5000
5060
|
* @see https://dev.twitch.tv/docs/api/reference#delete-channel-stream-schedule-segment
|
|
5001
5061
|
*/
|
|
5002
|
-
deleteChannelStreamScheduleSegment:
|
|
5062
|
+
deleteChannelStreamScheduleSegment: (params, options = {}) => this.callApi({
|
|
5003
5063
|
path: "/schedule/segment",
|
|
5004
5064
|
method: "DELETE",
|
|
5005
5065
|
params,
|
|
@@ -5038,7 +5098,7 @@ var TwitchApi = class {
|
|
|
5038
5098
|
*
|
|
5039
5099
|
* @see https://dev.twitch.tv/docs/api/reference#search-categories
|
|
5040
5100
|
*/
|
|
5041
|
-
searchCategories:
|
|
5101
|
+
searchCategories: (params, options = {}) => this.callApi({
|
|
5042
5102
|
path: "/search/categories",
|
|
5043
5103
|
params,
|
|
5044
5104
|
options
|
|
@@ -5078,7 +5138,7 @@ var TwitchApi = class {
|
|
|
5078
5138
|
*
|
|
5079
5139
|
* @see https://dev.twitch.tv/docs/api/reference#search-channels
|
|
5080
5140
|
*/
|
|
5081
|
-
searchChannels:
|
|
5141
|
+
searchChannels: (params, options = {}) => this.callApi({
|
|
5082
5142
|
path: "/search/channels",
|
|
5083
5143
|
params,
|
|
5084
5144
|
options
|
|
@@ -5117,7 +5177,7 @@ var TwitchApi = class {
|
|
|
5117
5177
|
*
|
|
5118
5178
|
* @see https://dev.twitch.tv/docs/api/reference#get-stream-key
|
|
5119
5179
|
*/
|
|
5120
|
-
getStreamKey:
|
|
5180
|
+
getStreamKey: (params, options = {}) => this.callApi({
|
|
5121
5181
|
path: "/streams/key",
|
|
5122
5182
|
params,
|
|
5123
5183
|
options
|
|
@@ -5151,7 +5211,7 @@ var TwitchApi = class {
|
|
|
5151
5211
|
*
|
|
5152
5212
|
* @see https://dev.twitch.tv/docs/api/reference#get-streams
|
|
5153
5213
|
*/
|
|
5154
|
-
getStreams:
|
|
5214
|
+
getStreams: (params = null, options = {}) => this.callApi({
|
|
5155
5215
|
path: "/streams",
|
|
5156
5216
|
params,
|
|
5157
5217
|
options
|
|
@@ -5187,7 +5247,7 @@ var TwitchApi = class {
|
|
|
5187
5247
|
*
|
|
5188
5248
|
* @see https://dev.twitch.tv/docs/api/reference#get-followed-streams
|
|
5189
5249
|
*/
|
|
5190
|
-
getFollowedStreams:
|
|
5250
|
+
getFollowedStreams: (params, options = {}) => this.callApi({
|
|
5191
5251
|
path: "/streams/followed",
|
|
5192
5252
|
params,
|
|
5193
5253
|
options
|
|
@@ -5240,7 +5300,7 @@ var TwitchApi = class {
|
|
|
5240
5300
|
*
|
|
5241
5301
|
* @see https://dev.twitch.tv/docs/api/reference#create-stream-marker
|
|
5242
5302
|
*/
|
|
5243
|
-
createStreamMarker:
|
|
5303
|
+
createStreamMarker: (body, options = {}) => this.callApi({
|
|
5244
5304
|
path: "/streams/markers",
|
|
5245
5305
|
method: "POST",
|
|
5246
5306
|
body,
|
|
@@ -5284,7 +5344,7 @@ var TwitchApi = class {
|
|
|
5284
5344
|
*
|
|
5285
5345
|
* @see https://dev.twitch.tv/docs/api/reference#get-stream-markers
|
|
5286
5346
|
*/
|
|
5287
|
-
getStreamMarkers:
|
|
5347
|
+
getStreamMarkers: (params = null, options = {}) => this.callApi({
|
|
5288
5348
|
path: "/streams/markers",
|
|
5289
5349
|
params,
|
|
5290
5350
|
options
|
|
@@ -5324,7 +5384,7 @@ var TwitchApi = class {
|
|
|
5324
5384
|
*
|
|
5325
5385
|
* @see https://dev.twitch.tv/docs/api/reference#get-broadcaster-subscriptions
|
|
5326
5386
|
*/
|
|
5327
|
-
getBroadcasterSubscriptions:
|
|
5387
|
+
getBroadcasterSubscriptions: (params, options = {}) => this.callApi({
|
|
5328
5388
|
path: "/subscriptions",
|
|
5329
5389
|
params,
|
|
5330
5390
|
options
|
|
@@ -5367,7 +5427,7 @@ var TwitchApi = class {
|
|
|
5367
5427
|
*
|
|
5368
5428
|
* @see https://dev.twitch.tv/docs/api/reference#check-user-subscription
|
|
5369
5429
|
*/
|
|
5370
|
-
checkUserSubscription:
|
|
5430
|
+
checkUserSubscription: (params, options = {}) => this.callApi({
|
|
5371
5431
|
path: "/subscriptions/user",
|
|
5372
5432
|
params,
|
|
5373
5433
|
options
|
|
@@ -5406,7 +5466,7 @@ var TwitchApi = class {
|
|
|
5406
5466
|
*
|
|
5407
5467
|
* @see https://dev.twitch.tv/docs/api/reference#get-all-stream-tags
|
|
5408
5468
|
*/
|
|
5409
|
-
getAllStreamTags:
|
|
5469
|
+
getAllStreamTags: (params = null, options = {}) => this.callApi({
|
|
5410
5470
|
path: "/tags/streams",
|
|
5411
5471
|
params,
|
|
5412
5472
|
options
|
|
@@ -5443,7 +5503,7 @@ var TwitchApi = class {
|
|
|
5443
5503
|
*
|
|
5444
5504
|
* @see https://dev.twitch.tv/docs/api/reference#get-stream-tags
|
|
5445
5505
|
*/
|
|
5446
|
-
getStreamTags:
|
|
5506
|
+
getStreamTags: (params, options = {}) => this.callApi({
|
|
5447
5507
|
path: "/streams/tags",
|
|
5448
5508
|
params,
|
|
5449
5509
|
options
|
|
@@ -5483,7 +5543,7 @@ var TwitchApi = class {
|
|
|
5483
5543
|
*
|
|
5484
5544
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-teams
|
|
5485
5545
|
*/
|
|
5486
|
-
getChannelTeams:
|
|
5546
|
+
getChannelTeams: (params, options = {}) => this.callApi({
|
|
5487
5547
|
path: "/teams/channel",
|
|
5488
5548
|
params,
|
|
5489
5549
|
options
|
|
@@ -5523,7 +5583,7 @@ var TwitchApi = class {
|
|
|
5523
5583
|
*
|
|
5524
5584
|
* @see https://dev.twitch.tv/docs/api/reference#get-teams
|
|
5525
5585
|
*/
|
|
5526
|
-
getTeams:
|
|
5586
|
+
getTeams: (params = null, options = {}) => this.callApi({
|
|
5527
5587
|
path: "/teams",
|
|
5528
5588
|
params,
|
|
5529
5589
|
options
|
|
@@ -5551,12 +5611,12 @@ var TwitchApi = class {
|
|
|
5551
5611
|
*
|
|
5552
5612
|
* _200 OK_
|
|
5553
5613
|
*
|
|
5554
|
-
* Successfully retrieved the specified users
|
|
5614
|
+
* Successfully retrieved the specified users’ information.
|
|
5555
5615
|
*
|
|
5556
5616
|
* _400 Bad Request_
|
|
5557
5617
|
*
|
|
5558
|
-
* * The
|
|
5559
|
-
* * The request exceeded the maximum allowed number of
|
|
5618
|
+
* * The \*id\* or \*login\* query parameter is required unless the request uses a user access token.
|
|
5619
|
+
* * The request exceeded the maximum allowed number of \*id\* and/or \*login\* query parameters.
|
|
5560
5620
|
*
|
|
5561
5621
|
* _401 Unauthorized_
|
|
5562
5622
|
*
|
|
@@ -5566,7 +5626,7 @@ var TwitchApi = class {
|
|
|
5566
5626
|
*
|
|
5567
5627
|
* @see https://dev.twitch.tv/docs/api/reference#get-users
|
|
5568
5628
|
*/
|
|
5569
|
-
getUsers:
|
|
5629
|
+
getUsers: (params = null, options = {}) => this.callApi({
|
|
5570
5630
|
path: "/users",
|
|
5571
5631
|
params,
|
|
5572
5632
|
options
|
|
@@ -5603,7 +5663,7 @@ var TwitchApi = class {
|
|
|
5603
5663
|
*
|
|
5604
5664
|
* @see https://dev.twitch.tv/docs/api/reference#update-user
|
|
5605
5665
|
*/
|
|
5606
|
-
updateUser:
|
|
5666
|
+
updateUser: (params = null, options = {}) => this.callApi({
|
|
5607
5667
|
path: "/users",
|
|
5608
5668
|
method: "PUT",
|
|
5609
5669
|
params,
|
|
@@ -5640,7 +5700,7 @@ var TwitchApi = class {
|
|
|
5640
5700
|
*
|
|
5641
5701
|
* @see https://dev.twitch.tv/docs/api/reference#get-user-block-list
|
|
5642
5702
|
*/
|
|
5643
|
-
getUserBlockList:
|
|
5703
|
+
getUserBlockList: (params, options = {}) => this.callApi({
|
|
5644
5704
|
path: "/users/blocks",
|
|
5645
5705
|
params,
|
|
5646
5706
|
options
|
|
@@ -5680,7 +5740,7 @@ var TwitchApi = class {
|
|
|
5680
5740
|
*
|
|
5681
5741
|
* @see https://dev.twitch.tv/docs/api/reference#block-user
|
|
5682
5742
|
*/
|
|
5683
|
-
blockUser:
|
|
5743
|
+
blockUser: (params, options = {}) => this.callApi({
|
|
5684
5744
|
path: "/users/blocks",
|
|
5685
5745
|
method: "PUT",
|
|
5686
5746
|
params,
|
|
@@ -5716,7 +5776,7 @@ var TwitchApi = class {
|
|
|
5716
5776
|
*
|
|
5717
5777
|
* @see https://dev.twitch.tv/docs/api/reference#unblock-user
|
|
5718
5778
|
*/
|
|
5719
|
-
unblockUser:
|
|
5779
|
+
unblockUser: (params, options = {}) => this.callApi({
|
|
5720
5780
|
path: "/users/blocks",
|
|
5721
5781
|
method: "DELETE",
|
|
5722
5782
|
params,
|
|
@@ -5748,7 +5808,7 @@ var TwitchApi = class {
|
|
|
5748
5808
|
*
|
|
5749
5809
|
* @see https://dev.twitch.tv/docs/api/reference#get-user-extensions
|
|
5750
5810
|
*/
|
|
5751
|
-
getUserExtensions:
|
|
5811
|
+
getUserExtensions: (options = {}) => this.callApi({
|
|
5752
5812
|
path: "/users/extensions/list",
|
|
5753
5813
|
options
|
|
5754
5814
|
}),
|
|
@@ -5783,7 +5843,7 @@ var TwitchApi = class {
|
|
|
5783
5843
|
*
|
|
5784
5844
|
* @see https://dev.twitch.tv/docs/api/reference#get-user-active-extensions
|
|
5785
5845
|
*/
|
|
5786
|
-
getUserActiveExtensions:
|
|
5846
|
+
getUserActiveExtensions: (params = null, options = {}) => this.callApi({
|
|
5787
5847
|
path: "/users/extensions",
|
|
5788
5848
|
params,
|
|
5789
5849
|
options
|
|
@@ -5824,7 +5884,7 @@ var TwitchApi = class {
|
|
|
5824
5884
|
*
|
|
5825
5885
|
* @see https://dev.twitch.tv/docs/api/reference#update-user-extensions
|
|
5826
5886
|
*/
|
|
5827
|
-
updateUserExtensions:
|
|
5887
|
+
updateUserExtensions: (body, options = {}) => this.callApi({
|
|
5828
5888
|
path: "/users/extensions",
|
|
5829
5889
|
method: "PUT",
|
|
5830
5890
|
body,
|
|
@@ -5874,7 +5934,7 @@ var TwitchApi = class {
|
|
|
5874
5934
|
*
|
|
5875
5935
|
* @see https://dev.twitch.tv/docs/api/reference#get-videos
|
|
5876
5936
|
*/
|
|
5877
|
-
getVideos:
|
|
5937
|
+
getVideos: (params = null, options = {}) => this.callApi({
|
|
5878
5938
|
path: "/videos",
|
|
5879
5939
|
params,
|
|
5880
5940
|
options
|
|
@@ -5911,7 +5971,7 @@ var TwitchApi = class {
|
|
|
5911
5971
|
*
|
|
5912
5972
|
* @see https://dev.twitch.tv/docs/api/reference#delete-videos
|
|
5913
5973
|
*/
|
|
5914
|
-
deleteVideos:
|
|
5974
|
+
deleteVideos: (params, options = {}) => this.callApi({
|
|
5915
5975
|
path: "/videos",
|
|
5916
5976
|
method: "DELETE",
|
|
5917
5977
|
params,
|
|
@@ -5975,7 +6035,7 @@ var TwitchApi = class {
|
|
|
5975
6035
|
*
|
|
5976
6036
|
* @see https://dev.twitch.tv/docs/api/reference#send-whisper
|
|
5977
6037
|
*/
|
|
5978
|
-
sendWhisper:
|
|
6038
|
+
sendWhisper: (params, body, options = {}) => this.callApi({
|
|
5979
6039
|
path: "/whispers",
|
|
5980
6040
|
method: "POST",
|
|
5981
6041
|
params,
|