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.js
CHANGED
|
@@ -108,7 +108,7 @@ var TwitchApi = class {
|
|
|
108
108
|
*
|
|
109
109
|
* @see https://dev.twitch.tv/docs/api/reference#start-commercial
|
|
110
110
|
*/
|
|
111
|
-
startCommercial:
|
|
111
|
+
startCommercial: (body, options = {}) => this.callApi({
|
|
112
112
|
path: "/channels/commercial",
|
|
113
113
|
method: "POST",
|
|
114
114
|
body,
|
|
@@ -139,7 +139,7 @@ var TwitchApi = class {
|
|
|
139
139
|
*
|
|
140
140
|
* @see https://dev.twitch.tv/docs/api/reference#get-ad-schedule
|
|
141
141
|
*/
|
|
142
|
-
getAdSchedule:
|
|
142
|
+
getAdSchedule: (params, options = {}) => this.callApi({
|
|
143
143
|
path: "/channels/ads",
|
|
144
144
|
params,
|
|
145
145
|
options
|
|
@@ -175,7 +175,7 @@ var TwitchApi = class {
|
|
|
175
175
|
*
|
|
176
176
|
* @see https://dev.twitch.tv/docs/api/reference#snooze-next-ad
|
|
177
177
|
*/
|
|
178
|
-
snoozeNextAd:
|
|
178
|
+
snoozeNextAd: (params, options = {}) => this.callApi({
|
|
179
179
|
path: "/channels/ads/schedule/snooze",
|
|
180
180
|
method: "POST",
|
|
181
181
|
params,
|
|
@@ -222,7 +222,7 @@ var TwitchApi = class {
|
|
|
222
222
|
*
|
|
223
223
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-analytics
|
|
224
224
|
*/
|
|
225
|
-
getExtensionAnalytics:
|
|
225
|
+
getExtensionAnalytics: (params = null, options = {}) => this.callApi({
|
|
226
226
|
path: "/analytics/extensions",
|
|
227
227
|
params,
|
|
228
228
|
options
|
|
@@ -266,7 +266,7 @@ var TwitchApi = class {
|
|
|
266
266
|
*
|
|
267
267
|
* @see https://dev.twitch.tv/docs/api/reference#get-game-analytics
|
|
268
268
|
*/
|
|
269
|
-
getGameAnalytics:
|
|
269
|
+
getGameAnalytics: (params = null, options = {}) => this.callApi({
|
|
270
270
|
path: "/analytics/games",
|
|
271
271
|
params,
|
|
272
272
|
options
|
|
@@ -307,7 +307,7 @@ var TwitchApi = class {
|
|
|
307
307
|
*
|
|
308
308
|
* @see https://dev.twitch.tv/docs/api/reference#get-bits-leaderboard
|
|
309
309
|
*/
|
|
310
|
-
getBitsLeaderboard:
|
|
310
|
+
getBitsLeaderboard: (params = null, options = {}) => this.callApi({
|
|
311
311
|
path: "/bits/leaderboard",
|
|
312
312
|
params,
|
|
313
313
|
options
|
|
@@ -336,7 +336,7 @@ var TwitchApi = class {
|
|
|
336
336
|
*
|
|
337
337
|
* @see https://dev.twitch.tv/docs/api/reference#get-cheermotes
|
|
338
338
|
*/
|
|
339
|
-
getCheermotes:
|
|
339
|
+
getCheermotes: (params = null, options = {}) => this.callApi({
|
|
340
340
|
path: "/bits/cheermotes",
|
|
341
341
|
params,
|
|
342
342
|
options
|
|
@@ -377,7 +377,7 @@ var TwitchApi = class {
|
|
|
377
377
|
*
|
|
378
378
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-transactions
|
|
379
379
|
*/
|
|
380
|
-
getExtensionTransactions:
|
|
380
|
+
getExtensionTransactions: (params, options = {}) => this.callApi({
|
|
381
381
|
path: "/extensions/transactions",
|
|
382
382
|
params,
|
|
383
383
|
options
|
|
@@ -421,7 +421,7 @@ var TwitchApi = class {
|
|
|
421
421
|
*
|
|
422
422
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-information
|
|
423
423
|
*/
|
|
424
|
-
getChannelInformation:
|
|
424
|
+
getChannelInformation: (params, options = {}) => this.callApi({
|
|
425
425
|
path: "/channels",
|
|
426
426
|
params,
|
|
427
427
|
options
|
|
@@ -483,7 +483,7 @@ var TwitchApi = class {
|
|
|
483
483
|
*
|
|
484
484
|
* @see https://dev.twitch.tv/docs/api/reference#modify-channel-information
|
|
485
485
|
*/
|
|
486
|
-
modifyChannelInformation:
|
|
486
|
+
modifyChannelInformation: (params, body = null, options = {}) => this.callApi({
|
|
487
487
|
path: "/channels",
|
|
488
488
|
method: "PATCH",
|
|
489
489
|
params,
|
|
@@ -521,7 +521,7 @@ var TwitchApi = class {
|
|
|
521
521
|
*
|
|
522
522
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-editors
|
|
523
523
|
*/
|
|
524
|
-
getChannelEditors:
|
|
524
|
+
getChannelEditors: (params, options = {}) => this.callApi({
|
|
525
525
|
path: "/channels/editors",
|
|
526
526
|
params,
|
|
527
527
|
options
|
|
@@ -563,7 +563,7 @@ var TwitchApi = class {
|
|
|
563
563
|
*
|
|
564
564
|
* @see https://dev.twitch.tv/docs/api/reference#get-followed-channels
|
|
565
565
|
*/
|
|
566
|
-
getFollowedChannels:
|
|
566
|
+
getFollowedChannels: (params, options = {}) => this.callApi({
|
|
567
567
|
path: "/channels/followed",
|
|
568
568
|
params,
|
|
569
569
|
options
|
|
@@ -608,7 +608,7 @@ var TwitchApi = class {
|
|
|
608
608
|
*
|
|
609
609
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-followers
|
|
610
610
|
*/
|
|
611
|
-
getChannelFollowers:
|
|
611
|
+
getChannelFollowers: (params, options = {}) => this.callApi({
|
|
612
612
|
path: "/channels/followers",
|
|
613
613
|
params,
|
|
614
614
|
options
|
|
@@ -661,7 +661,7 @@ var TwitchApi = class {
|
|
|
661
661
|
*
|
|
662
662
|
* @see https://dev.twitch.tv/docs/api/reference#create-custom-rewards
|
|
663
663
|
*/
|
|
664
|
-
createCustomRewards:
|
|
664
|
+
createCustomRewards: (params, body, options = {}) => this.callApi({
|
|
665
665
|
path: "/channel_points/custom_rewards",
|
|
666
666
|
method: "POST",
|
|
667
667
|
params,
|
|
@@ -712,7 +712,7 @@ var TwitchApi = class {
|
|
|
712
712
|
*
|
|
713
713
|
* @see https://dev.twitch.tv/docs/api/reference#delete-custom-reward
|
|
714
714
|
*/
|
|
715
|
-
deleteCustomReward:
|
|
715
|
+
deleteCustomReward: (params, options = {}) => this.callApi({
|
|
716
716
|
path: "/channel_points/custom_rewards",
|
|
717
717
|
method: "DELETE",
|
|
718
718
|
params,
|
|
@@ -761,7 +761,7 @@ var TwitchApi = class {
|
|
|
761
761
|
*
|
|
762
762
|
* @see https://dev.twitch.tv/docs/api/reference#get-custom-reward
|
|
763
763
|
*/
|
|
764
|
-
getCustomReward:
|
|
764
|
+
getCustomReward: (params, options = {}) => this.callApi({
|
|
765
765
|
path: "/channel_points/custom_rewards",
|
|
766
766
|
params,
|
|
767
767
|
options
|
|
@@ -771,7 +771,7 @@ var TwitchApi = class {
|
|
|
771
771
|
*
|
|
772
772
|
* __Authorization:__
|
|
773
773
|
*
|
|
774
|
-
* Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope.
|
|
774
|
+
* Requires a [user access token](https://dev.twitch.tv/docs/api/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope.
|
|
775
775
|
*
|
|
776
776
|
* __Request Body:__
|
|
777
777
|
*
|
|
@@ -789,6 +789,7 @@ var TwitchApi = class {
|
|
|
789
789
|
*
|
|
790
790
|
* _400 Bad Request_
|
|
791
791
|
*
|
|
792
|
+
* ul>
|
|
792
793
|
* * The _broadcaster\_id_ query parameter is required.
|
|
793
794
|
* * The _id_ query parameter is required.
|
|
794
795
|
* * The `title` must contain a minimum of 1 character and a maximum of 45 characters.
|
|
@@ -819,7 +820,7 @@ var TwitchApi = class {
|
|
|
819
820
|
*
|
|
820
821
|
* @see https://dev.twitch.tv/docs/api/reference#update-custom-reward
|
|
821
822
|
*/
|
|
822
|
-
updateCustomReward:
|
|
823
|
+
updateCustomReward: (params, body = null, options = {}) => this.callApi({
|
|
823
824
|
path: "/channel_points/custom_rewards",
|
|
824
825
|
method: "PATCH",
|
|
825
826
|
params,
|
|
@@ -871,7 +872,7 @@ var TwitchApi = class {
|
|
|
871
872
|
*
|
|
872
873
|
* @see https://dev.twitch.tv/docs/api/reference#get-custom-reward-redemption
|
|
873
874
|
*/
|
|
874
|
-
getCustomRewardRedemption:
|
|
875
|
+
getCustomRewardRedemption: (params, options = {}) => this.callApi({
|
|
875
876
|
path: "/channel_points/custom_rewards/redemptions",
|
|
876
877
|
params,
|
|
877
878
|
options
|
|
@@ -921,7 +922,7 @@ var TwitchApi = class {
|
|
|
921
922
|
*
|
|
922
923
|
* @see https://dev.twitch.tv/docs/api/reference#update-redemption-status
|
|
923
924
|
*/
|
|
924
|
-
updateRedemptionStatus:
|
|
925
|
+
updateRedemptionStatus: (params, body, options = {}) => this.callApi({
|
|
925
926
|
path: "/channel_points/custom_rewards/redemptions",
|
|
926
927
|
method: "PATCH",
|
|
927
928
|
params,
|
|
@@ -968,7 +969,7 @@ var TwitchApi = class {
|
|
|
968
969
|
*
|
|
969
970
|
* @see https://dev.twitch.tv/docs/api/reference#get-charity-campaign
|
|
970
971
|
*/
|
|
971
|
-
getCharityCampaign:
|
|
972
|
+
getCharityCampaign: (params, options = {}) => this.callApi({
|
|
972
973
|
path: "/charity/campaigns",
|
|
973
974
|
params,
|
|
974
975
|
options
|
|
@@ -1011,7 +1012,7 @@ var TwitchApi = class {
|
|
|
1011
1012
|
*
|
|
1012
1013
|
* @see https://dev.twitch.tv/docs/api/reference#get-charity-campaign-donations
|
|
1013
1014
|
*/
|
|
1014
|
-
getCharityCampaignDonations:
|
|
1015
|
+
getCharityCampaignDonations: (params, options = {}) => this.callApi({
|
|
1015
1016
|
path: "/charity/donations",
|
|
1016
1017
|
params,
|
|
1017
1018
|
options
|
|
@@ -1060,7 +1061,7 @@ var TwitchApi = class {
|
|
|
1060
1061
|
*
|
|
1061
1062
|
* @see https://dev.twitch.tv/docs/api/reference#get-chatters
|
|
1062
1063
|
*/
|
|
1063
|
-
getChatters:
|
|
1064
|
+
getChatters: (params, options = {}) => this.callApi({
|
|
1064
1065
|
path: "/chat/chatters",
|
|
1065
1066
|
params,
|
|
1066
1067
|
options
|
|
@@ -1098,7 +1099,7 @@ var TwitchApi = class {
|
|
|
1098
1099
|
*
|
|
1099
1100
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-emotes
|
|
1100
1101
|
*/
|
|
1101
|
-
getChannelEmotes:
|
|
1102
|
+
getChannelEmotes: (params, options = {}) => this.callApi({
|
|
1102
1103
|
path: "/chat/emotes",
|
|
1103
1104
|
params,
|
|
1104
1105
|
options
|
|
@@ -1134,7 +1135,7 @@ var TwitchApi = class {
|
|
|
1134
1135
|
*
|
|
1135
1136
|
* @see https://dev.twitch.tv/docs/api/reference#get-global-emotes
|
|
1136
1137
|
*/
|
|
1137
|
-
getGlobalEmotes:
|
|
1138
|
+
getGlobalEmotes: (options = {}) => this.callApi({
|
|
1138
1139
|
path: "/chat/emotes/global",
|
|
1139
1140
|
options
|
|
1140
1141
|
}),
|
|
@@ -1172,7 +1173,7 @@ var TwitchApi = class {
|
|
|
1172
1173
|
*
|
|
1173
1174
|
* @see https://dev.twitch.tv/docs/api/reference#get-emote-sets
|
|
1174
1175
|
*/
|
|
1175
|
-
getEmoteSets:
|
|
1176
|
+
getEmoteSets: (params, options = {}) => this.callApi({
|
|
1176
1177
|
path: "/chat/emotes/set",
|
|
1177
1178
|
params,
|
|
1178
1179
|
options
|
|
@@ -1206,7 +1207,7 @@ var TwitchApi = class {
|
|
|
1206
1207
|
*
|
|
1207
1208
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-chat-badges
|
|
1208
1209
|
*/
|
|
1209
|
-
getChannelChatBadges:
|
|
1210
|
+
getChannelChatBadges: (params, options = {}) => this.callApi({
|
|
1210
1211
|
path: "/chat/badges",
|
|
1211
1212
|
params,
|
|
1212
1213
|
options
|
|
@@ -1240,7 +1241,7 @@ var TwitchApi = class {
|
|
|
1240
1241
|
*
|
|
1241
1242
|
* @see https://dev.twitch.tv/docs/api/reference#get-global-chat-badges
|
|
1242
1243
|
*/
|
|
1243
|
-
getGlobalChatBadges:
|
|
1244
|
+
getGlobalChatBadges: (options = {}) => this.callApi({
|
|
1244
1245
|
path: "/chat/badges/global",
|
|
1245
1246
|
options
|
|
1246
1247
|
}),
|
|
@@ -1275,7 +1276,7 @@ var TwitchApi = class {
|
|
|
1275
1276
|
*
|
|
1276
1277
|
* @see https://dev.twitch.tv/docs/api/reference#get-chat-settings
|
|
1277
1278
|
*/
|
|
1278
|
-
getChatSettings:
|
|
1279
|
+
getChatSettings: (params, options = {}) => this.callApi({
|
|
1279
1280
|
path: "/chat/settings",
|
|
1280
1281
|
params,
|
|
1281
1282
|
options
|
|
@@ -1329,7 +1330,7 @@ var TwitchApi = class {
|
|
|
1329
1330
|
*
|
|
1330
1331
|
* @see https://dev.twitch.tv/docs/api/reference#update-chat-settings
|
|
1331
1332
|
*/
|
|
1332
|
-
updateChatSettings:
|
|
1333
|
+
updateChatSettings: (params, body = null, options = {}) => this.callApi({
|
|
1333
1334
|
path: "/chat/settings",
|
|
1334
1335
|
method: "PATCH",
|
|
1335
1336
|
params,
|
|
@@ -1337,7 +1338,7 @@ var TwitchApi = class {
|
|
|
1337
1338
|
options
|
|
1338
1339
|
}),
|
|
1339
1340
|
/**
|
|
1340
|
-
*
|
|
1341
|
+
* NEW Retrieves emotes available to the user across all channels.
|
|
1341
1342
|
*
|
|
1342
1343
|
* __Authorization:__
|
|
1343
1344
|
*
|
|
@@ -1369,7 +1370,7 @@ var TwitchApi = class {
|
|
|
1369
1370
|
*
|
|
1370
1371
|
* @see https://dev.twitch.tv/docs/api/reference#get-user-emotes
|
|
1371
1372
|
*/
|
|
1372
|
-
getUserEmotes:
|
|
1373
|
+
getUserEmotes: (params, options = {}) => this.callApi({
|
|
1373
1374
|
path: "/chat/emotes/user",
|
|
1374
1375
|
params,
|
|
1375
1376
|
options
|
|
@@ -1407,7 +1408,7 @@ var TwitchApi = class {
|
|
|
1407
1408
|
*
|
|
1408
1409
|
* @see https://dev.twitch.tv/docs/api/reference#send-chat-announcement
|
|
1409
1410
|
*/
|
|
1410
|
-
sendChatAnnouncement:
|
|
1411
|
+
sendChatAnnouncement: (params, body, options = {}) => this.callApi({
|
|
1411
1412
|
path: "/chat/announcements",
|
|
1412
1413
|
method: "POST",
|
|
1413
1414
|
params,
|
|
@@ -1466,7 +1467,7 @@ var TwitchApi = class {
|
|
|
1466
1467
|
*
|
|
1467
1468
|
* @see https://dev.twitch.tv/docs/api/reference#send-a-shoutout
|
|
1468
1469
|
*/
|
|
1469
|
-
sendShoutout:
|
|
1470
|
+
sendShoutout: (params, options = {}) => this.callApi({
|
|
1470
1471
|
path: "/chat/shoutouts",
|
|
1471
1472
|
method: "POST",
|
|
1472
1473
|
params,
|
|
@@ -1516,7 +1517,7 @@ var TwitchApi = class {
|
|
|
1516
1517
|
*
|
|
1517
1518
|
* @see https://dev.twitch.tv/docs/api/reference#send-chat-message
|
|
1518
1519
|
*/
|
|
1519
|
-
sendChatMessage:
|
|
1520
|
+
sendChatMessage: (body, options = {}) => this.callApi({
|
|
1520
1521
|
path: "/chat/messages",
|
|
1521
1522
|
method: "POST",
|
|
1522
1523
|
body,
|
|
@@ -1551,7 +1552,7 @@ var TwitchApi = class {
|
|
|
1551
1552
|
*
|
|
1552
1553
|
* @see https://dev.twitch.tv/docs/api/reference#get-user-chat-color
|
|
1553
1554
|
*/
|
|
1554
|
-
getUserChatColor:
|
|
1555
|
+
getUserChatColor: (params, options = {}) => this.callApi({
|
|
1555
1556
|
path: "/chat/color",
|
|
1556
1557
|
params,
|
|
1557
1558
|
options
|
|
@@ -1590,7 +1591,7 @@ var TwitchApi = class {
|
|
|
1590
1591
|
*
|
|
1591
1592
|
* @see https://dev.twitch.tv/docs/api/reference#update-user-chat-color
|
|
1592
1593
|
*/
|
|
1593
|
-
updateUserChatColor:
|
|
1594
|
+
updateUserChatColor: (params, options = {}) => this.callApi({
|
|
1594
1595
|
path: "/chat/color",
|
|
1595
1596
|
method: "PUT",
|
|
1596
1597
|
params,
|
|
@@ -1644,7 +1645,7 @@ var TwitchApi = class {
|
|
|
1644
1645
|
*
|
|
1645
1646
|
* @see https://dev.twitch.tv/docs/api/reference#create-clip
|
|
1646
1647
|
*/
|
|
1647
|
-
createClip:
|
|
1648
|
+
createClip: (params, options = {}) => this.callApi({
|
|
1648
1649
|
path: "/clips",
|
|
1649
1650
|
method: "POST",
|
|
1650
1651
|
params,
|
|
@@ -1688,7 +1689,7 @@ var TwitchApi = class {
|
|
|
1688
1689
|
*
|
|
1689
1690
|
* @see https://dev.twitch.tv/docs/api/reference#get-clips
|
|
1690
1691
|
*/
|
|
1691
|
-
getClips:
|
|
1692
|
+
getClips: (params = null, options = {}) => this.callApi({
|
|
1692
1693
|
path: "/clips",
|
|
1693
1694
|
params,
|
|
1694
1695
|
options
|
|
@@ -1718,7 +1719,7 @@ var TwitchApi = class {
|
|
|
1718
1719
|
*
|
|
1719
1720
|
* @see https://dev.twitch.tv/docs/api/reference#get-conduits
|
|
1720
1721
|
*/
|
|
1721
|
-
getConduits:
|
|
1722
|
+
getConduits: (options = {}) => this.callApi({
|
|
1722
1723
|
path: "/eventsub/conduits",
|
|
1723
1724
|
options
|
|
1724
1725
|
}),
|
|
@@ -1753,7 +1754,7 @@ var TwitchApi = class {
|
|
|
1753
1754
|
*
|
|
1754
1755
|
* @see https://dev.twitch.tv/docs/api/reference#create-conduits
|
|
1755
1756
|
*/
|
|
1756
|
-
createConduits:
|
|
1757
|
+
createConduits: (body, options = {}) => this.callApi({
|
|
1757
1758
|
path: "/eventsub/conduits",
|
|
1758
1759
|
method: "POST",
|
|
1759
1760
|
body,
|
|
@@ -1792,7 +1793,7 @@ var TwitchApi = class {
|
|
|
1792
1793
|
*
|
|
1793
1794
|
* @see https://dev.twitch.tv/docs/api/reference#update-conduits
|
|
1794
1795
|
*/
|
|
1795
|
-
updateConduits:
|
|
1796
|
+
updateConduits: (body, options = {}) => this.callApi({
|
|
1796
1797
|
path: "/eventsub/conduits",
|
|
1797
1798
|
method: "PATCH",
|
|
1798
1799
|
body,
|
|
@@ -1830,7 +1831,7 @@ var TwitchApi = class {
|
|
|
1830
1831
|
*
|
|
1831
1832
|
* @see https://dev.twitch.tv/docs/api/reference#delete-conduit
|
|
1832
1833
|
*/
|
|
1833
|
-
deleteConduit:
|
|
1834
|
+
deleteConduit: (params, options = {}) => this.callApi({
|
|
1834
1835
|
path: "/eventsub/conduits",
|
|
1835
1836
|
method: "DELETE",
|
|
1836
1837
|
params,
|
|
@@ -1868,7 +1869,7 @@ var TwitchApi = class {
|
|
|
1868
1869
|
*
|
|
1869
1870
|
* @see https://dev.twitch.tv/docs/api/reference#get-conduit-shards
|
|
1870
1871
|
*/
|
|
1871
|
-
getConduitShards:
|
|
1872
|
+
getConduitShards: (params, options = {}) => this.callApi({
|
|
1872
1873
|
path: "/eventsub/conduits/shards",
|
|
1873
1874
|
params,
|
|
1874
1875
|
options
|
|
@@ -1907,7 +1908,7 @@ var TwitchApi = class {
|
|
|
1907
1908
|
*
|
|
1908
1909
|
* @see https://dev.twitch.tv/docs/api/reference#update-conduit-shards
|
|
1909
1910
|
*/
|
|
1910
|
-
updateConduitShards:
|
|
1911
|
+
updateConduitShards: (body, options = {}) => this.callApi({
|
|
1911
1912
|
path: "/eventsub/conduits/shards",
|
|
1912
1913
|
method: "PATCH",
|
|
1913
1914
|
body,
|
|
@@ -1940,7 +1941,7 @@ var TwitchApi = class {
|
|
|
1940
1941
|
*
|
|
1941
1942
|
* @see https://dev.twitch.tv/docs/api/reference#get-content-classification-labels
|
|
1942
1943
|
*/
|
|
1943
|
-
getContentClassificationLabels:
|
|
1944
|
+
getContentClassificationLabels: (params = null, options = {}) => this.callApi({
|
|
1944
1945
|
path: "/content_classification_labels",
|
|
1945
1946
|
params,
|
|
1946
1947
|
options
|
|
@@ -2002,7 +2003,7 @@ var TwitchApi = class {
|
|
|
2002
2003
|
*
|
|
2003
2004
|
* @see https://dev.twitch.tv/docs/api/reference#get-drops-entitlements
|
|
2004
2005
|
*/
|
|
2005
|
-
getDropsEntitlements:
|
|
2006
|
+
getDropsEntitlements: (params = null, options = {}) => this.callApi({
|
|
2006
2007
|
path: "/entitlements/drops",
|
|
2007
2008
|
params,
|
|
2008
2009
|
options
|
|
@@ -2048,7 +2049,7 @@ var TwitchApi = class {
|
|
|
2048
2049
|
*
|
|
2049
2050
|
* @see https://dev.twitch.tv/docs/api/reference#update-drops-entitlements
|
|
2050
2051
|
*/
|
|
2051
|
-
updateDropsEntitlements:
|
|
2052
|
+
updateDropsEntitlements: (body = null, options = {}) => this.callApi({
|
|
2052
2053
|
path: "/entitlements/drops",
|
|
2053
2054
|
method: "PATCH",
|
|
2054
2055
|
body,
|
|
@@ -2093,7 +2094,7 @@ var TwitchApi = class {
|
|
|
2093
2094
|
*
|
|
2094
2095
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-configuration-segment
|
|
2095
2096
|
*/
|
|
2096
|
-
getExtensionConfigurationSegment:
|
|
2097
|
+
getExtensionConfigurationSegment: (params, options = {}) => this.callApi({
|
|
2097
2098
|
path: "/extensions/configurations",
|
|
2098
2099
|
params,
|
|
2099
2100
|
options
|
|
@@ -2129,7 +2130,7 @@ var TwitchApi = class {
|
|
|
2129
2130
|
*
|
|
2130
2131
|
* @see https://dev.twitch.tv/docs/api/reference#set-extension-configuration-segment
|
|
2131
2132
|
*/
|
|
2132
|
-
setExtensionConfigurationSegment:
|
|
2133
|
+
setExtensionConfigurationSegment: (body, options = {}) => this.callApi({
|
|
2133
2134
|
path: "/extensions/configurations",
|
|
2134
2135
|
method: "PUT",
|
|
2135
2136
|
body,
|
|
@@ -2167,7 +2168,7 @@ var TwitchApi = class {
|
|
|
2167
2168
|
*
|
|
2168
2169
|
* @see https://dev.twitch.tv/docs/api/reference#set-extension-required-configuration
|
|
2169
2170
|
*/
|
|
2170
|
-
setExtensionRequiredConfiguration:
|
|
2171
|
+
setExtensionRequiredConfiguration: (params, body, options = {}) => this.callApi({
|
|
2171
2172
|
path: "/extensions/required_configuration",
|
|
2172
2173
|
method: "PUT",
|
|
2173
2174
|
params,
|
|
@@ -2243,7 +2244,7 @@ var TwitchApi = class {
|
|
|
2243
2244
|
*
|
|
2244
2245
|
* @see https://dev.twitch.tv/docs/api/reference#send-extension-pubsub-message
|
|
2245
2246
|
*/
|
|
2246
|
-
sendExtensionPubSubMessage:
|
|
2247
|
+
sendExtensionPubSubMessage: (body, options = {}) => this.callApi({
|
|
2247
2248
|
path: "/extensions/pubsub",
|
|
2248
2249
|
method: "POST",
|
|
2249
2250
|
body,
|
|
@@ -2285,7 +2286,7 @@ var TwitchApi = class {
|
|
|
2285
2286
|
*
|
|
2286
2287
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-live-channels
|
|
2287
2288
|
*/
|
|
2288
|
-
getExtensionLiveChannels:
|
|
2289
|
+
getExtensionLiveChannels: (params, options = {}) => this.callApi({
|
|
2289
2290
|
path: "/extensions/live",
|
|
2290
2291
|
params,
|
|
2291
2292
|
options
|
|
@@ -2319,7 +2320,7 @@ var TwitchApi = class {
|
|
|
2319
2320
|
*
|
|
2320
2321
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-secrets
|
|
2321
2322
|
*/
|
|
2322
|
-
getExtensionSecrets:
|
|
2323
|
+
getExtensionSecrets: (options = {}) => this.callApi({
|
|
2323
2324
|
path: "/extensions/jwt/secrets",
|
|
2324
2325
|
options
|
|
2325
2326
|
}),
|
|
@@ -2353,7 +2354,7 @@ var TwitchApi = class {
|
|
|
2353
2354
|
*
|
|
2354
2355
|
* @see https://dev.twitch.tv/docs/api/reference#create-extension-secret
|
|
2355
2356
|
*/
|
|
2356
|
-
createExtensionSecret:
|
|
2357
|
+
createExtensionSecret: (params, options = {}) => this.callApi({
|
|
2357
2358
|
path: "/extensions/jwt/secrets",
|
|
2358
2359
|
method: "POST",
|
|
2359
2360
|
params,
|
|
@@ -2395,7 +2396,7 @@ var TwitchApi = class {
|
|
|
2395
2396
|
*
|
|
2396
2397
|
* @see https://dev.twitch.tv/docs/api/reference#send-extension-chat-message
|
|
2397
2398
|
*/
|
|
2398
|
-
sendExtensionChatMessage:
|
|
2399
|
+
sendExtensionChatMessage: (params, body, options = {}) => this.callApi({
|
|
2399
2400
|
path: "/extensions/chat",
|
|
2400
2401
|
method: "POST",
|
|
2401
2402
|
params,
|
|
@@ -2436,7 +2437,7 @@ var TwitchApi = class {
|
|
|
2436
2437
|
*
|
|
2437
2438
|
* @see https://dev.twitch.tv/docs/api/reference#get-extensions
|
|
2438
2439
|
*/
|
|
2439
|
-
getExtensions:
|
|
2440
|
+
getExtensions: (params, options = {}) => this.callApi({
|
|
2440
2441
|
path: "/extensions",
|
|
2441
2442
|
params,
|
|
2442
2443
|
options
|
|
@@ -2474,7 +2475,7 @@ var TwitchApi = class {
|
|
|
2474
2475
|
*
|
|
2475
2476
|
* @see https://dev.twitch.tv/docs/api/reference#get-released-extensions
|
|
2476
2477
|
*/
|
|
2477
|
-
getReleasedExtensions:
|
|
2478
|
+
getReleasedExtensions: (params, options = {}) => this.callApi({
|
|
2478
2479
|
path: "/extensions/released",
|
|
2479
2480
|
params,
|
|
2480
2481
|
options
|
|
@@ -2508,7 +2509,7 @@ var TwitchApi = class {
|
|
|
2508
2509
|
*
|
|
2509
2510
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-bits-products
|
|
2510
2511
|
*/
|
|
2511
|
-
getExtensionBitsProducts:
|
|
2512
|
+
getExtensionBitsProducts: (params = null, options = {}) => this.callApi({
|
|
2512
2513
|
path: "/bits/extensions",
|
|
2513
2514
|
params,
|
|
2514
2515
|
options
|
|
@@ -2549,7 +2550,7 @@ var TwitchApi = class {
|
|
|
2549
2550
|
*
|
|
2550
2551
|
* @see https://dev.twitch.tv/docs/api/reference#update-extension-bits-product
|
|
2551
2552
|
*/
|
|
2552
|
-
updateExtensionBitsProduct:
|
|
2553
|
+
updateExtensionBitsProduct: (body, options = {}) => this.callApi({
|
|
2553
2554
|
path: "/bits/extensions",
|
|
2554
2555
|
method: "PUT",
|
|
2555
2556
|
body,
|
|
@@ -2613,7 +2614,7 @@ var TwitchApi = class {
|
|
|
2613
2614
|
*
|
|
2614
2615
|
* @see https://dev.twitch.tv/docs/api/reference#create-eventsub-subscription
|
|
2615
2616
|
*/
|
|
2616
|
-
createEventSubSubscription:
|
|
2617
|
+
createEventSubSubscription: (body, options = {}) => this.callApi({
|
|
2617
2618
|
path: "/eventsub/subscriptions",
|
|
2618
2619
|
method: "POST",
|
|
2619
2620
|
body,
|
|
@@ -2654,7 +2655,7 @@ var TwitchApi = class {
|
|
|
2654
2655
|
*
|
|
2655
2656
|
* @see https://dev.twitch.tv/docs/api/reference#delete-eventsub-subscription
|
|
2656
2657
|
*/
|
|
2657
|
-
deleteEventSubSubscription:
|
|
2658
|
+
deleteEventSubSubscription: (params, options = {}) => this.callApi({
|
|
2658
2659
|
path: "/eventsub/subscriptions",
|
|
2659
2660
|
method: "DELETE",
|
|
2660
2661
|
params,
|
|
@@ -2698,7 +2699,7 @@ var TwitchApi = class {
|
|
|
2698
2699
|
*
|
|
2699
2700
|
* @see https://dev.twitch.tv/docs/api/reference#get-eventsub-subscriptions
|
|
2700
2701
|
*/
|
|
2701
|
-
getEventSubSubscriptions:
|
|
2702
|
+
getEventSubSubscriptions: (params = null, options = {}) => this.callApi({
|
|
2702
2703
|
path: "/eventsub/subscriptions",
|
|
2703
2704
|
params,
|
|
2704
2705
|
options
|
|
@@ -2735,7 +2736,7 @@ var TwitchApi = class {
|
|
|
2735
2736
|
*
|
|
2736
2737
|
* @see https://dev.twitch.tv/docs/api/reference#get-top-games
|
|
2737
2738
|
*/
|
|
2738
|
-
getTopGames:
|
|
2739
|
+
getTopGames: (params = null, options = {}) => this.callApi({
|
|
2739
2740
|
path: "/games/top",
|
|
2740
2741
|
params,
|
|
2741
2742
|
options
|
|
@@ -2772,7 +2773,7 @@ var TwitchApi = class {
|
|
|
2772
2773
|
*
|
|
2773
2774
|
* @see https://dev.twitch.tv/docs/api/reference#get-games
|
|
2774
2775
|
*/
|
|
2775
|
-
getGames:
|
|
2776
|
+
getGames: (params = null, options = {}) => this.callApi({
|
|
2776
2777
|
path: "/games",
|
|
2777
2778
|
params,
|
|
2778
2779
|
options
|
|
@@ -2812,7 +2813,7 @@ var TwitchApi = class {
|
|
|
2812
2813
|
*
|
|
2813
2814
|
* @see https://dev.twitch.tv/docs/api/reference#get-creator-goals
|
|
2814
2815
|
*/
|
|
2815
|
-
getCreatorGoals:
|
|
2816
|
+
getCreatorGoals: (params, options = {}) => this.callApi({
|
|
2816
2817
|
path: "/goals",
|
|
2817
2818
|
params,
|
|
2818
2819
|
options
|
|
@@ -2846,7 +2847,7 @@ var TwitchApi = class {
|
|
|
2846
2847
|
*
|
|
2847
2848
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-guest-star-settings
|
|
2848
2849
|
*/
|
|
2849
|
-
getChannelGuestStarSettings:
|
|
2850
|
+
getChannelGuestStarSettings: (params, options = {}) => this.callApi({
|
|
2850
2851
|
path: "/guest_star/channel_settings",
|
|
2851
2852
|
params,
|
|
2852
2853
|
options
|
|
@@ -2877,7 +2878,7 @@ var TwitchApi = class {
|
|
|
2877
2878
|
*
|
|
2878
2879
|
* @see https://dev.twitch.tv/docs/api/reference#update-channel-guest-star-settings
|
|
2879
2880
|
*/
|
|
2880
|
-
updateChannelGuestStarSettings:
|
|
2881
|
+
updateChannelGuestStarSettings: (params, body = null, options = {}) => this.callApi({
|
|
2881
2882
|
path: "/guest_star/channel_settings",
|
|
2882
2883
|
method: "PUT",
|
|
2883
2884
|
params,
|
|
@@ -2911,7 +2912,7 @@ var TwitchApi = class {
|
|
|
2911
2912
|
*
|
|
2912
2913
|
* @see https://dev.twitch.tv/docs/api/reference#get-guest-star-session
|
|
2913
2914
|
*/
|
|
2914
|
-
getGuestStarSession:
|
|
2915
|
+
getGuestStarSession: (params, options = {}) => this.callApi({
|
|
2915
2916
|
path: "/guest_star/session",
|
|
2916
2917
|
params,
|
|
2917
2918
|
options
|
|
@@ -2947,7 +2948,7 @@ var TwitchApi = class {
|
|
|
2947
2948
|
*
|
|
2948
2949
|
* @see https://dev.twitch.tv/docs/api/reference#create-guest-star-session
|
|
2949
2950
|
*/
|
|
2950
|
-
createGuestStarSession:
|
|
2951
|
+
createGuestStarSession: (params, options = {}) => this.callApi({
|
|
2951
2952
|
path: "/guest_star/session",
|
|
2952
2953
|
method: "POST",
|
|
2953
2954
|
params,
|
|
@@ -2981,7 +2982,7 @@ var TwitchApi = class {
|
|
|
2981
2982
|
*
|
|
2982
2983
|
* @see https://dev.twitch.tv/docs/api/reference#end-guest-star-session
|
|
2983
2984
|
*/
|
|
2984
|
-
endGuestStarSession:
|
|
2985
|
+
endGuestStarSession: (params, options = {}) => this.callApi({
|
|
2985
2986
|
path: "/guest_star/session",
|
|
2986
2987
|
method: "DELETE",
|
|
2987
2988
|
params,
|
|
@@ -3010,7 +3011,7 @@ var TwitchApi = class {
|
|
|
3010
3011
|
*
|
|
3011
3012
|
* @see https://dev.twitch.tv/docs/api/reference#get-guest-star-invites
|
|
3012
3013
|
*/
|
|
3013
|
-
getGuestStarInvites:
|
|
3014
|
+
getGuestStarInvites: (params, options = {}) => this.callApi({
|
|
3014
3015
|
path: "/guest_star/invites",
|
|
3015
3016
|
params,
|
|
3016
3017
|
options
|
|
@@ -3046,7 +3047,7 @@ var TwitchApi = class {
|
|
|
3046
3047
|
*
|
|
3047
3048
|
* @see https://dev.twitch.tv/docs/api/reference#send-guest-star-invite
|
|
3048
3049
|
*/
|
|
3049
|
-
sendGuestStarInvite:
|
|
3050
|
+
sendGuestStarInvite: (params, options = {}) => this.callApi({
|
|
3050
3051
|
path: "/guest_star/invites",
|
|
3051
3052
|
method: "POST",
|
|
3052
3053
|
params,
|
|
@@ -3081,7 +3082,7 @@ var TwitchApi = class {
|
|
|
3081
3082
|
*
|
|
3082
3083
|
* @see https://dev.twitch.tv/docs/api/reference#delete-guest-star-invite
|
|
3083
3084
|
*/
|
|
3084
|
-
deleteGuestStarInvite:
|
|
3085
|
+
deleteGuestStarInvite: (params, options = {}) => this.callApi({
|
|
3085
3086
|
path: "/guest_star/invites",
|
|
3086
3087
|
method: "DELETE",
|
|
3087
3088
|
params,
|
|
@@ -3126,7 +3127,7 @@ var TwitchApi = class {
|
|
|
3126
3127
|
*
|
|
3127
3128
|
* @see https://dev.twitch.tv/docs/api/reference#assign-guest-star-slot
|
|
3128
3129
|
*/
|
|
3129
|
-
assignGuestStarSlot:
|
|
3130
|
+
assignGuestStarSlot: (params, options = {}) => this.callApi({
|
|
3130
3131
|
path: "/guest_star/slot",
|
|
3131
3132
|
method: "POST",
|
|
3132
3133
|
params,
|
|
@@ -3158,7 +3159,7 @@ var TwitchApi = class {
|
|
|
3158
3159
|
*
|
|
3159
3160
|
* @see https://dev.twitch.tv/docs/api/reference#update-guest-star-slot
|
|
3160
3161
|
*/
|
|
3161
|
-
updateGuestStarSlot:
|
|
3162
|
+
updateGuestStarSlot: (params, options = {}) => this.callApi({
|
|
3162
3163
|
path: "/guest_star/slot",
|
|
3163
3164
|
method: "PATCH",
|
|
3164
3165
|
params,
|
|
@@ -3200,7 +3201,7 @@ var TwitchApi = class {
|
|
|
3200
3201
|
*
|
|
3201
3202
|
* @see https://dev.twitch.tv/docs/api/reference#delete-guest-star-slot
|
|
3202
3203
|
*/
|
|
3203
|
-
deleteGuestStarSlot:
|
|
3204
|
+
deleteGuestStarSlot: (params, options = {}) => this.callApi({
|
|
3204
3205
|
path: "/guest_star/slot",
|
|
3205
3206
|
method: "DELETE",
|
|
3206
3207
|
params,
|
|
@@ -3238,7 +3239,7 @@ var TwitchApi = class {
|
|
|
3238
3239
|
*
|
|
3239
3240
|
* @see https://dev.twitch.tv/docs/api/reference#update-guest-star-slot-settings
|
|
3240
3241
|
*/
|
|
3241
|
-
updateGuestStarSlotSettings:
|
|
3242
|
+
updateGuestStarSlotSettings: (params, options = {}) => this.callApi({
|
|
3242
3243
|
path: "/guest_star/slot_settings",
|
|
3243
3244
|
method: "PATCH",
|
|
3244
3245
|
params,
|
|
@@ -3275,7 +3276,7 @@ var TwitchApi = class {
|
|
|
3275
3276
|
*
|
|
3276
3277
|
* @see https://dev.twitch.tv/docs/api/reference#get-hype-train-events
|
|
3277
3278
|
*/
|
|
3278
|
-
getHypeTrainEvents:
|
|
3279
|
+
getHypeTrainEvents: (params, options = {}) => this.callApi({
|
|
3279
3280
|
path: "/hypetrain/events",
|
|
3280
3281
|
params,
|
|
3281
3282
|
options
|
|
@@ -3336,7 +3337,7 @@ var TwitchApi = class {
|
|
|
3336
3337
|
*
|
|
3337
3338
|
* @see https://dev.twitch.tv/docs/api/reference#check-automod-status
|
|
3338
3339
|
*/
|
|
3339
|
-
checkAutoModStatus:
|
|
3340
|
+
checkAutoModStatus: (params, body, options = {}) => this.callApi({
|
|
3340
3341
|
path: "/moderation/enforcements/status",
|
|
3341
3342
|
method: "POST",
|
|
3342
3343
|
params,
|
|
@@ -3387,7 +3388,7 @@ var TwitchApi = class {
|
|
|
3387
3388
|
*
|
|
3388
3389
|
* @see https://dev.twitch.tv/docs/api/reference#manage-held-automod-messages
|
|
3389
3390
|
*/
|
|
3390
|
-
manageHeldAutoModMessages:
|
|
3391
|
+
manageHeldAutoModMessages: (body, options = {}) => this.callApi({
|
|
3391
3392
|
path: "/moderation/automod/message",
|
|
3392
3393
|
method: "POST",
|
|
3393
3394
|
body,
|
|
@@ -3429,7 +3430,7 @@ var TwitchApi = class {
|
|
|
3429
3430
|
*
|
|
3430
3431
|
* @see https://dev.twitch.tv/docs/api/reference#get-automod-settings
|
|
3431
3432
|
*/
|
|
3432
|
-
getAutoModSettings:
|
|
3433
|
+
getAutoModSettings: (params, options = {}) => this.callApi({
|
|
3433
3434
|
path: "/moderation/automod/settings",
|
|
3434
3435
|
params,
|
|
3435
3436
|
options
|
|
@@ -3486,7 +3487,7 @@ var TwitchApi = class {
|
|
|
3486
3487
|
*
|
|
3487
3488
|
* @see https://dev.twitch.tv/docs/api/reference#update-automod-settings
|
|
3488
3489
|
*/
|
|
3489
|
-
updateAutoModSettings:
|
|
3490
|
+
updateAutoModSettings: (params, body = null, options = {}) => this.callApi({
|
|
3490
3491
|
path: "/moderation/automod/settings",
|
|
3491
3492
|
method: "PUT",
|
|
3492
3493
|
params,
|
|
@@ -3524,7 +3525,7 @@ var TwitchApi = class {
|
|
|
3524
3525
|
*
|
|
3525
3526
|
* @see https://dev.twitch.tv/docs/api/reference#get-banned-users
|
|
3526
3527
|
*/
|
|
3527
|
-
getBannedUsers:
|
|
3528
|
+
getBannedUsers: (params, options = {}) => this.callApi({
|
|
3528
3529
|
path: "/moderation/banned",
|
|
3529
3530
|
params,
|
|
3530
3531
|
options
|
|
@@ -3585,7 +3586,7 @@ var TwitchApi = class {
|
|
|
3585
3586
|
*
|
|
3586
3587
|
* @see https://dev.twitch.tv/docs/api/reference#ban-user
|
|
3587
3588
|
*/
|
|
3588
|
-
banUser:
|
|
3589
|
+
banUser: (params, body, options = {}) => this.callApi({
|
|
3589
3590
|
path: "/moderation/bans",
|
|
3590
3591
|
method: "POST",
|
|
3591
3592
|
params,
|
|
@@ -3640,14 +3641,14 @@ var TwitchApi = class {
|
|
|
3640
3641
|
*
|
|
3641
3642
|
* @see https://dev.twitch.tv/docs/api/reference#unban-user
|
|
3642
3643
|
*/
|
|
3643
|
-
unbanUser:
|
|
3644
|
+
unbanUser: (params, options = {}) => this.callApi({
|
|
3644
3645
|
path: "/moderation/bans",
|
|
3645
3646
|
method: "DELETE",
|
|
3646
3647
|
params,
|
|
3647
3648
|
options
|
|
3648
3649
|
}),
|
|
3649
3650
|
/**
|
|
3650
|
-
*
|
|
3651
|
+
* NEW Gets a list of unban requests for a broadcaster’s channel.
|
|
3651
3652
|
*
|
|
3652
3653
|
* __Authorization:__
|
|
3653
3654
|
*
|
|
@@ -3682,18 +3683,18 @@ var TwitchApi = class {
|
|
|
3682
3683
|
*
|
|
3683
3684
|
* @see https://dev.twitch.tv/docs/api/reference#get-unban-requests
|
|
3684
3685
|
*/
|
|
3685
|
-
getUnbanRequests:
|
|
3686
|
+
getUnbanRequests: (params, options = {}) => this.callApi({
|
|
3686
3687
|
path: "/moderation/unban_requests",
|
|
3687
3688
|
params,
|
|
3688
3689
|
options
|
|
3689
3690
|
}),
|
|
3690
3691
|
/**
|
|
3691
|
-
*
|
|
3692
|
+
* NEW Resolves an unban request by approving or denying it.
|
|
3692
3693
|
*
|
|
3693
3694
|
* __Authorization:__
|
|
3694
3695
|
*
|
|
3695
|
-
* * Requires a user access token that includes the **moderator:manage:unban
|
|
3696
|
-
* * Query parameter `moderator_id` must match the `user_id` in the
|
|
3696
|
+
* * Requires a user access token that includes the **moderator:manage:unban\\\_requests** scope.
|
|
3697
|
+
* * Query parameter `moderator_id` must match the `user_id` in the[user access token](https://dev.twitch.tv/docs/authentication/#user-access-tokens).
|
|
3697
3698
|
*
|
|
3698
3699
|
* __URL:__
|
|
3699
3700
|
*
|
|
@@ -3729,7 +3730,7 @@ var TwitchApi = class {
|
|
|
3729
3730
|
*
|
|
3730
3731
|
* @see https://dev.twitch.tv/docs/api/reference#resolve-unban-requests
|
|
3731
3732
|
*/
|
|
3732
|
-
resolveUnbanRequests:
|
|
3733
|
+
resolveUnbanRequests: (params, options = {}) => this.callApi({
|
|
3733
3734
|
path: "/moderation/unban_requests",
|
|
3734
3735
|
method: "PATCH",
|
|
3735
3736
|
params,
|
|
@@ -3771,7 +3772,7 @@ var TwitchApi = class {
|
|
|
3771
3772
|
*
|
|
3772
3773
|
* @see https://dev.twitch.tv/docs/api/reference#get-blocked-terms
|
|
3773
3774
|
*/
|
|
3774
|
-
getBlockedTerms:
|
|
3775
|
+
getBlockedTerms: (params, options = {}) => this.callApi({
|
|
3775
3776
|
path: "/moderation/blocked_terms",
|
|
3776
3777
|
params,
|
|
3777
3778
|
options
|
|
@@ -3814,7 +3815,7 @@ var TwitchApi = class {
|
|
|
3814
3815
|
*
|
|
3815
3816
|
* @see https://dev.twitch.tv/docs/api/reference#add-blocked-term
|
|
3816
3817
|
*/
|
|
3817
|
-
addBlockedTerm:
|
|
3818
|
+
addBlockedTerm: (params, body, options = {}) => this.callApi({
|
|
3818
3819
|
path: "/moderation/blocked_terms",
|
|
3819
3820
|
method: "POST",
|
|
3820
3821
|
params,
|
|
@@ -3858,7 +3859,7 @@ var TwitchApi = class {
|
|
|
3858
3859
|
*
|
|
3859
3860
|
* @see https://dev.twitch.tv/docs/api/reference#remove-blocked-term
|
|
3860
3861
|
*/
|
|
3861
|
-
removeBlockedTerm:
|
|
3862
|
+
removeBlockedTerm: (params, options = {}) => this.callApi({
|
|
3862
3863
|
path: "/moderation/blocked_terms",
|
|
3863
3864
|
method: "DELETE",
|
|
3864
3865
|
params,
|
|
@@ -3904,7 +3905,7 @@ var TwitchApi = class {
|
|
|
3904
3905
|
*
|
|
3905
3906
|
* @see https://dev.twitch.tv/docs/api/reference#delete-chat-messages
|
|
3906
3907
|
*/
|
|
3907
|
-
deleteChatMessages:
|
|
3908
|
+
deleteChatMessages: (params, options = {}) => this.callApi({
|
|
3908
3909
|
path: "/moderation/chat",
|
|
3909
3910
|
method: "DELETE",
|
|
3910
3911
|
params,
|
|
@@ -3936,7 +3937,7 @@ var TwitchApi = class {
|
|
|
3936
3937
|
*
|
|
3937
3938
|
* @see https://dev.twitch.tv/docs/api/reference#get-moderated-channels
|
|
3938
3939
|
*/
|
|
3939
|
-
getModeratedChannels:
|
|
3940
|
+
getModeratedChannels: (params, options = {}) => this.callApi({
|
|
3940
3941
|
path: "/moderation/channels",
|
|
3941
3942
|
params,
|
|
3942
3943
|
options
|
|
@@ -3972,7 +3973,7 @@ var TwitchApi = class {
|
|
|
3972
3973
|
*
|
|
3973
3974
|
* @see https://dev.twitch.tv/docs/api/reference#get-moderators
|
|
3974
3975
|
*/
|
|
3975
|
-
getModerators:
|
|
3976
|
+
getModerators: (params, options = {}) => this.callApi({
|
|
3976
3977
|
path: "/moderation/moderators",
|
|
3977
3978
|
params,
|
|
3978
3979
|
options
|
|
@@ -4021,7 +4022,7 @@ var TwitchApi = class {
|
|
|
4021
4022
|
*
|
|
4022
4023
|
* @see https://dev.twitch.tv/docs/api/reference#add-channel-moderator
|
|
4023
4024
|
*/
|
|
4024
|
-
addChannelModerator:
|
|
4025
|
+
addChannelModerator: (params, options = {}) => this.callApi({
|
|
4025
4026
|
path: "/moderation/moderators",
|
|
4026
4027
|
method: "POST",
|
|
4027
4028
|
params,
|
|
@@ -4066,7 +4067,7 @@ var TwitchApi = class {
|
|
|
4066
4067
|
*
|
|
4067
4068
|
* @see https://dev.twitch.tv/docs/api/reference#remove-channel-moderator
|
|
4068
4069
|
*/
|
|
4069
|
-
removeChannelModerator:
|
|
4070
|
+
removeChannelModerator: (params, options = {}) => this.callApi({
|
|
4070
4071
|
path: "/moderation/moderators",
|
|
4071
4072
|
method: "DELETE",
|
|
4072
4073
|
params,
|
|
@@ -4105,7 +4106,7 @@ var TwitchApi = class {
|
|
|
4105
4106
|
*
|
|
4106
4107
|
* @see https://dev.twitch.tv/docs/api/reference#get-vips
|
|
4107
4108
|
*/
|
|
4108
|
-
getVIPs:
|
|
4109
|
+
getVIPs: (params, options = {}) => this.callApi({
|
|
4109
4110
|
path: "/channels/vips",
|
|
4110
4111
|
params,
|
|
4111
4112
|
options
|
|
@@ -4171,7 +4172,7 @@ var TwitchApi = class {
|
|
|
4171
4172
|
*
|
|
4172
4173
|
* @see https://dev.twitch.tv/docs/api/reference#add-channel-vip
|
|
4173
4174
|
*/
|
|
4174
|
-
addChannelVIP:
|
|
4175
|
+
addChannelVIP: (params, options = {}) => this.callApi({
|
|
4175
4176
|
path: "/channels/vips",
|
|
4176
4177
|
method: "POST",
|
|
4177
4178
|
params,
|
|
@@ -4230,7 +4231,7 @@ var TwitchApi = class {
|
|
|
4230
4231
|
*
|
|
4231
4232
|
* @see https://dev.twitch.tv/docs/api/reference#remove-channel-vip
|
|
4232
4233
|
*/
|
|
4233
|
-
removeChannelVIP:
|
|
4234
|
+
removeChannelVIP: (params, options = {}) => this.callApi({
|
|
4234
4235
|
path: "/channels/vips",
|
|
4235
4236
|
method: "DELETE",
|
|
4236
4237
|
params,
|
|
@@ -4276,7 +4277,7 @@ var TwitchApi = class {
|
|
|
4276
4277
|
*
|
|
4277
4278
|
* @see https://dev.twitch.tv/docs/api/reference#update-shield-mode-status
|
|
4278
4279
|
*/
|
|
4279
|
-
updateShieldModeStatus:
|
|
4280
|
+
updateShieldModeStatus: (params, body, options = {}) => this.callApi({
|
|
4280
4281
|
path: "/moderation/shield_mode",
|
|
4281
4282
|
method: "PUT",
|
|
4282
4283
|
params,
|
|
@@ -4321,10 +4322,69 @@ var TwitchApi = class {
|
|
|
4321
4322
|
*
|
|
4322
4323
|
* @see https://dev.twitch.tv/docs/api/reference#get-shield-mode-status
|
|
4323
4324
|
*/
|
|
4324
|
-
getShieldModeStatus:
|
|
4325
|
+
getShieldModeStatus: (params, options = {}) => this.callApi({
|
|
4325
4326
|
path: "/moderation/shield_mode",
|
|
4326
4327
|
params,
|
|
4327
4328
|
options
|
|
4329
|
+
}),
|
|
4330
|
+
/**
|
|
4331
|
+
* 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).
|
|
4332
|
+
*
|
|
4333
|
+
* __Authorization:__
|
|
4334
|
+
*
|
|
4335
|
+
* 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).
|
|
4336
|
+
*
|
|
4337
|
+
* __URL:__
|
|
4338
|
+
*
|
|
4339
|
+
* `POST https://api.twitch.tv/helix/moderation/warnings`
|
|
4340
|
+
*
|
|
4341
|
+
* __Response Codes:__
|
|
4342
|
+
*
|
|
4343
|
+
* _200 OK_
|
|
4344
|
+
*
|
|
4345
|
+
* Successfully warn a user.
|
|
4346
|
+
*
|
|
4347
|
+
* _400 Bad Request_
|
|
4348
|
+
*
|
|
4349
|
+
* * The _broadcaster\_id_ query parameter is required.
|
|
4350
|
+
* * The _moderator\_id_ query parameter is required.
|
|
4351
|
+
* * The _user\_id_ query parameter is required.
|
|
4352
|
+
* * The _reason_ query parameter is required.
|
|
4353
|
+
* * The text in the _reason_ field is too long.
|
|
4354
|
+
* * The user specified in the _user\_id_ may not be warned.
|
|
4355
|
+
*
|
|
4356
|
+
* _401 Unauthorized_
|
|
4357
|
+
*
|
|
4358
|
+
* * The ID in _moderator\_id_ must match the user ID in the user access token.
|
|
4359
|
+
* * The Authorization header is required and must contain a user access token.
|
|
4360
|
+
* * The user access token must include the **moderator:manage:warnings** scope.
|
|
4361
|
+
* * The access token is not valid.
|
|
4362
|
+
* * The client ID specified in the Client-Id header does not match the client ID specified in the access token.
|
|
4363
|
+
*
|
|
4364
|
+
* _403 Forbidden_
|
|
4365
|
+
*
|
|
4366
|
+
* The user in _moderator\_id_ is not one of the broadcaster’s moderators.
|
|
4367
|
+
*
|
|
4368
|
+
* _409 Conflict_
|
|
4369
|
+
*
|
|
4370
|
+
* 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.
|
|
4371
|
+
*
|
|
4372
|
+
* _429 Too Many Requests_
|
|
4373
|
+
*
|
|
4374
|
+
* The app has exceeded the number of requests it may make per minute for this broadcaster.
|
|
4375
|
+
*
|
|
4376
|
+
* _500 Internal Server Error_
|
|
4377
|
+
*
|
|
4378
|
+
* Internal Server Error.
|
|
4379
|
+
*
|
|
4380
|
+
* @see https://dev.twitch.tv/docs/api/reference#warn-chat-user
|
|
4381
|
+
*/
|
|
4382
|
+
warnChatUser: (params, body, options = {}) => this.callApi({
|
|
4383
|
+
path: "/moderation/warnings",
|
|
4384
|
+
method: "POST",
|
|
4385
|
+
params,
|
|
4386
|
+
body,
|
|
4387
|
+
options
|
|
4328
4388
|
})
|
|
4329
4389
|
};
|
|
4330
4390
|
polls = {
|
|
@@ -4365,7 +4425,7 @@ var TwitchApi = class {
|
|
|
4365
4425
|
*
|
|
4366
4426
|
* @see https://dev.twitch.tv/docs/api/reference#get-polls
|
|
4367
4427
|
*/
|
|
4368
|
-
getPolls:
|
|
4428
|
+
getPolls: (params, options = {}) => this.callApi({
|
|
4369
4429
|
path: "/polls",
|
|
4370
4430
|
params,
|
|
4371
4431
|
options
|
|
@@ -4414,7 +4474,7 @@ var TwitchApi = class {
|
|
|
4414
4474
|
*
|
|
4415
4475
|
* @see https://dev.twitch.tv/docs/api/reference#create-poll
|
|
4416
4476
|
*/
|
|
4417
|
-
createPoll:
|
|
4477
|
+
createPoll: (body, options = {}) => this.callApi({
|
|
4418
4478
|
path: "/polls",
|
|
4419
4479
|
method: "POST",
|
|
4420
4480
|
body,
|
|
@@ -4455,7 +4515,7 @@ var TwitchApi = class {
|
|
|
4455
4515
|
*
|
|
4456
4516
|
* @see https://dev.twitch.tv/docs/api/reference#end-poll
|
|
4457
4517
|
*/
|
|
4458
|
-
endPoll:
|
|
4518
|
+
endPoll: (body, options = {}) => this.callApi({
|
|
4459
4519
|
path: "/polls",
|
|
4460
4520
|
method: "PATCH",
|
|
4461
4521
|
body,
|
|
@@ -4494,7 +4554,7 @@ var TwitchApi = class {
|
|
|
4494
4554
|
*
|
|
4495
4555
|
* @see https://dev.twitch.tv/docs/api/reference#get-predictions
|
|
4496
4556
|
*/
|
|
4497
|
-
getPredictions:
|
|
4557
|
+
getPredictions: (params, options = {}) => this.callApi({
|
|
4498
4558
|
path: "/predictions",
|
|
4499
4559
|
params,
|
|
4500
4560
|
options
|
|
@@ -4543,7 +4603,7 @@ var TwitchApi = class {
|
|
|
4543
4603
|
*
|
|
4544
4604
|
* @see https://dev.twitch.tv/docs/api/reference#create-prediction
|
|
4545
4605
|
*/
|
|
4546
|
-
createPrediction:
|
|
4606
|
+
createPrediction: (body, options = {}) => this.callApi({
|
|
4547
4607
|
path: "/predictions",
|
|
4548
4608
|
method: "POST",
|
|
4549
4609
|
body,
|
|
@@ -4591,7 +4651,7 @@ var TwitchApi = class {
|
|
|
4591
4651
|
*
|
|
4592
4652
|
* @see https://dev.twitch.tv/docs/api/reference#end-prediction
|
|
4593
4653
|
*/
|
|
4594
|
-
endPrediction:
|
|
4654
|
+
endPrediction: (body, options = {}) => this.callApi({
|
|
4595
4655
|
path: "/predictions",
|
|
4596
4656
|
method: "PATCH",
|
|
4597
4657
|
body,
|
|
@@ -4655,7 +4715,7 @@ var TwitchApi = class {
|
|
|
4655
4715
|
*
|
|
4656
4716
|
* @see https://dev.twitch.tv/docs/api/reference#start-a-raid
|
|
4657
4717
|
*/
|
|
4658
|
-
startRaid:
|
|
4718
|
+
startRaid: (params = null, options = {}) => this.callApi({
|
|
4659
4719
|
path: "/raids",
|
|
4660
4720
|
method: "POST",
|
|
4661
4721
|
params,
|
|
@@ -4704,7 +4764,7 @@ var TwitchApi = class {
|
|
|
4704
4764
|
*
|
|
4705
4765
|
* @see https://dev.twitch.tv/docs/api/reference#cancel-a-raid
|
|
4706
4766
|
*/
|
|
4707
|
-
cancelRaid:
|
|
4767
|
+
cancelRaid: (params, options = {}) => this.callApi({
|
|
4708
4768
|
path: "/raids",
|
|
4709
4769
|
method: "DELETE",
|
|
4710
4770
|
params,
|
|
@@ -4752,7 +4812,7 @@ var TwitchApi = class {
|
|
|
4752
4812
|
*
|
|
4753
4813
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-stream-schedule
|
|
4754
4814
|
*/
|
|
4755
|
-
getChannelStreamSchedule:
|
|
4815
|
+
getChannelStreamSchedule: (params, options = {}) => this.callApi({
|
|
4756
4816
|
path: "/schedule",
|
|
4757
4817
|
params,
|
|
4758
4818
|
options
|
|
@@ -4787,7 +4847,7 @@ var TwitchApi = class {
|
|
|
4787
4847
|
*
|
|
4788
4848
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-icalendar
|
|
4789
4849
|
*/
|
|
4790
|
-
getChannelICalendar:
|
|
4850
|
+
getChannelICalendar: (params, options = {}) => this.callApi({
|
|
4791
4851
|
path: "/schedule/icalendar",
|
|
4792
4852
|
params,
|
|
4793
4853
|
options
|
|
@@ -4831,7 +4891,7 @@ var TwitchApi = class {
|
|
|
4831
4891
|
*
|
|
4832
4892
|
* @see https://dev.twitch.tv/docs/api/reference#update-channel-stream-schedule
|
|
4833
4893
|
*/
|
|
4834
|
-
updateChannelStreamSchedule:
|
|
4894
|
+
updateChannelStreamSchedule: (params, options = {}) => this.callApi({
|
|
4835
4895
|
path: "/schedule/settings",
|
|
4836
4896
|
method: "PATCH",
|
|
4837
4897
|
params,
|
|
@@ -4878,7 +4938,7 @@ var TwitchApi = class {
|
|
|
4878
4938
|
*
|
|
4879
4939
|
* @see https://dev.twitch.tv/docs/api/reference#create-channel-stream-schedule-segment
|
|
4880
4940
|
*/
|
|
4881
|
-
createChannelStreamScheduleSegment:
|
|
4941
|
+
createChannelStreamScheduleSegment: (params, body, options = {}) => this.callApi({
|
|
4882
4942
|
path: "/schedule/segment",
|
|
4883
4943
|
method: "POST",
|
|
4884
4944
|
params,
|
|
@@ -4930,7 +4990,7 @@ var TwitchApi = class {
|
|
|
4930
4990
|
*
|
|
4931
4991
|
* @see https://dev.twitch.tv/docs/api/reference#update-channel-stream-schedule-segment
|
|
4932
4992
|
*/
|
|
4933
|
-
updateChannelStreamScheduleSegment:
|
|
4993
|
+
updateChannelStreamScheduleSegment: (params, body = null, options = {}) => this.callApi({
|
|
4934
4994
|
path: "/schedule/segment",
|
|
4935
4995
|
method: "PATCH",
|
|
4936
4996
|
params,
|
|
@@ -4973,7 +5033,7 @@ var TwitchApi = class {
|
|
|
4973
5033
|
*
|
|
4974
5034
|
* @see https://dev.twitch.tv/docs/api/reference#delete-channel-stream-schedule-segment
|
|
4975
5035
|
*/
|
|
4976
|
-
deleteChannelStreamScheduleSegment:
|
|
5036
|
+
deleteChannelStreamScheduleSegment: (params, options = {}) => this.callApi({
|
|
4977
5037
|
path: "/schedule/segment",
|
|
4978
5038
|
method: "DELETE",
|
|
4979
5039
|
params,
|
|
@@ -5012,7 +5072,7 @@ var TwitchApi = class {
|
|
|
5012
5072
|
*
|
|
5013
5073
|
* @see https://dev.twitch.tv/docs/api/reference#search-categories
|
|
5014
5074
|
*/
|
|
5015
|
-
searchCategories:
|
|
5075
|
+
searchCategories: (params, options = {}) => this.callApi({
|
|
5016
5076
|
path: "/search/categories",
|
|
5017
5077
|
params,
|
|
5018
5078
|
options
|
|
@@ -5052,7 +5112,7 @@ var TwitchApi = class {
|
|
|
5052
5112
|
*
|
|
5053
5113
|
* @see https://dev.twitch.tv/docs/api/reference#search-channels
|
|
5054
5114
|
*/
|
|
5055
|
-
searchChannels:
|
|
5115
|
+
searchChannels: (params, options = {}) => this.callApi({
|
|
5056
5116
|
path: "/search/channels",
|
|
5057
5117
|
params,
|
|
5058
5118
|
options
|
|
@@ -5091,7 +5151,7 @@ var TwitchApi = class {
|
|
|
5091
5151
|
*
|
|
5092
5152
|
* @see https://dev.twitch.tv/docs/api/reference#get-stream-key
|
|
5093
5153
|
*/
|
|
5094
|
-
getStreamKey:
|
|
5154
|
+
getStreamKey: (params, options = {}) => this.callApi({
|
|
5095
5155
|
path: "/streams/key",
|
|
5096
5156
|
params,
|
|
5097
5157
|
options
|
|
@@ -5125,7 +5185,7 @@ var TwitchApi = class {
|
|
|
5125
5185
|
*
|
|
5126
5186
|
* @see https://dev.twitch.tv/docs/api/reference#get-streams
|
|
5127
5187
|
*/
|
|
5128
|
-
getStreams:
|
|
5188
|
+
getStreams: (params = null, options = {}) => this.callApi({
|
|
5129
5189
|
path: "/streams",
|
|
5130
5190
|
params,
|
|
5131
5191
|
options
|
|
@@ -5161,7 +5221,7 @@ var TwitchApi = class {
|
|
|
5161
5221
|
*
|
|
5162
5222
|
* @see https://dev.twitch.tv/docs/api/reference#get-followed-streams
|
|
5163
5223
|
*/
|
|
5164
|
-
getFollowedStreams:
|
|
5224
|
+
getFollowedStreams: (params, options = {}) => this.callApi({
|
|
5165
5225
|
path: "/streams/followed",
|
|
5166
5226
|
params,
|
|
5167
5227
|
options
|
|
@@ -5214,7 +5274,7 @@ var TwitchApi = class {
|
|
|
5214
5274
|
*
|
|
5215
5275
|
* @see https://dev.twitch.tv/docs/api/reference#create-stream-marker
|
|
5216
5276
|
*/
|
|
5217
|
-
createStreamMarker:
|
|
5277
|
+
createStreamMarker: (body, options = {}) => this.callApi({
|
|
5218
5278
|
path: "/streams/markers",
|
|
5219
5279
|
method: "POST",
|
|
5220
5280
|
body,
|
|
@@ -5258,7 +5318,7 @@ var TwitchApi = class {
|
|
|
5258
5318
|
*
|
|
5259
5319
|
* @see https://dev.twitch.tv/docs/api/reference#get-stream-markers
|
|
5260
5320
|
*/
|
|
5261
|
-
getStreamMarkers:
|
|
5321
|
+
getStreamMarkers: (params = null, options = {}) => this.callApi({
|
|
5262
5322
|
path: "/streams/markers",
|
|
5263
5323
|
params,
|
|
5264
5324
|
options
|
|
@@ -5298,7 +5358,7 @@ var TwitchApi = class {
|
|
|
5298
5358
|
*
|
|
5299
5359
|
* @see https://dev.twitch.tv/docs/api/reference#get-broadcaster-subscriptions
|
|
5300
5360
|
*/
|
|
5301
|
-
getBroadcasterSubscriptions:
|
|
5361
|
+
getBroadcasterSubscriptions: (params, options = {}) => this.callApi({
|
|
5302
5362
|
path: "/subscriptions",
|
|
5303
5363
|
params,
|
|
5304
5364
|
options
|
|
@@ -5341,7 +5401,7 @@ var TwitchApi = class {
|
|
|
5341
5401
|
*
|
|
5342
5402
|
* @see https://dev.twitch.tv/docs/api/reference#check-user-subscription
|
|
5343
5403
|
*/
|
|
5344
|
-
checkUserSubscription:
|
|
5404
|
+
checkUserSubscription: (params, options = {}) => this.callApi({
|
|
5345
5405
|
path: "/subscriptions/user",
|
|
5346
5406
|
params,
|
|
5347
5407
|
options
|
|
@@ -5380,7 +5440,7 @@ var TwitchApi = class {
|
|
|
5380
5440
|
*
|
|
5381
5441
|
* @see https://dev.twitch.tv/docs/api/reference#get-all-stream-tags
|
|
5382
5442
|
*/
|
|
5383
|
-
getAllStreamTags:
|
|
5443
|
+
getAllStreamTags: (params = null, options = {}) => this.callApi({
|
|
5384
5444
|
path: "/tags/streams",
|
|
5385
5445
|
params,
|
|
5386
5446
|
options
|
|
@@ -5417,7 +5477,7 @@ var TwitchApi = class {
|
|
|
5417
5477
|
*
|
|
5418
5478
|
* @see https://dev.twitch.tv/docs/api/reference#get-stream-tags
|
|
5419
5479
|
*/
|
|
5420
|
-
getStreamTags:
|
|
5480
|
+
getStreamTags: (params, options = {}) => this.callApi({
|
|
5421
5481
|
path: "/streams/tags",
|
|
5422
5482
|
params,
|
|
5423
5483
|
options
|
|
@@ -5457,7 +5517,7 @@ var TwitchApi = class {
|
|
|
5457
5517
|
*
|
|
5458
5518
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-teams
|
|
5459
5519
|
*/
|
|
5460
|
-
getChannelTeams:
|
|
5520
|
+
getChannelTeams: (params, options = {}) => this.callApi({
|
|
5461
5521
|
path: "/teams/channel",
|
|
5462
5522
|
params,
|
|
5463
5523
|
options
|
|
@@ -5497,7 +5557,7 @@ var TwitchApi = class {
|
|
|
5497
5557
|
*
|
|
5498
5558
|
* @see https://dev.twitch.tv/docs/api/reference#get-teams
|
|
5499
5559
|
*/
|
|
5500
|
-
getTeams:
|
|
5560
|
+
getTeams: (params = null, options = {}) => this.callApi({
|
|
5501
5561
|
path: "/teams",
|
|
5502
5562
|
params,
|
|
5503
5563
|
options
|
|
@@ -5525,12 +5585,12 @@ var TwitchApi = class {
|
|
|
5525
5585
|
*
|
|
5526
5586
|
* _200 OK_
|
|
5527
5587
|
*
|
|
5528
|
-
* Successfully retrieved the specified users
|
|
5588
|
+
* Successfully retrieved the specified users’ information.
|
|
5529
5589
|
*
|
|
5530
5590
|
* _400 Bad Request_
|
|
5531
5591
|
*
|
|
5532
|
-
* * The
|
|
5533
|
-
* * The request exceeded the maximum allowed number of
|
|
5592
|
+
* * The \*id\* or \*login\* query parameter is required unless the request uses a user access token.
|
|
5593
|
+
* * The request exceeded the maximum allowed number of \*id\* and/or \*login\* query parameters.
|
|
5534
5594
|
*
|
|
5535
5595
|
* _401 Unauthorized_
|
|
5536
5596
|
*
|
|
@@ -5540,7 +5600,7 @@ var TwitchApi = class {
|
|
|
5540
5600
|
*
|
|
5541
5601
|
* @see https://dev.twitch.tv/docs/api/reference#get-users
|
|
5542
5602
|
*/
|
|
5543
|
-
getUsers:
|
|
5603
|
+
getUsers: (params = null, options = {}) => this.callApi({
|
|
5544
5604
|
path: "/users",
|
|
5545
5605
|
params,
|
|
5546
5606
|
options
|
|
@@ -5577,7 +5637,7 @@ var TwitchApi = class {
|
|
|
5577
5637
|
*
|
|
5578
5638
|
* @see https://dev.twitch.tv/docs/api/reference#update-user
|
|
5579
5639
|
*/
|
|
5580
|
-
updateUser:
|
|
5640
|
+
updateUser: (params = null, options = {}) => this.callApi({
|
|
5581
5641
|
path: "/users",
|
|
5582
5642
|
method: "PUT",
|
|
5583
5643
|
params,
|
|
@@ -5614,7 +5674,7 @@ var TwitchApi = class {
|
|
|
5614
5674
|
*
|
|
5615
5675
|
* @see https://dev.twitch.tv/docs/api/reference#get-user-block-list
|
|
5616
5676
|
*/
|
|
5617
|
-
getUserBlockList:
|
|
5677
|
+
getUserBlockList: (params, options = {}) => this.callApi({
|
|
5618
5678
|
path: "/users/blocks",
|
|
5619
5679
|
params,
|
|
5620
5680
|
options
|
|
@@ -5654,7 +5714,7 @@ var TwitchApi = class {
|
|
|
5654
5714
|
*
|
|
5655
5715
|
* @see https://dev.twitch.tv/docs/api/reference#block-user
|
|
5656
5716
|
*/
|
|
5657
|
-
blockUser:
|
|
5717
|
+
blockUser: (params, options = {}) => this.callApi({
|
|
5658
5718
|
path: "/users/blocks",
|
|
5659
5719
|
method: "PUT",
|
|
5660
5720
|
params,
|
|
@@ -5690,7 +5750,7 @@ var TwitchApi = class {
|
|
|
5690
5750
|
*
|
|
5691
5751
|
* @see https://dev.twitch.tv/docs/api/reference#unblock-user
|
|
5692
5752
|
*/
|
|
5693
|
-
unblockUser:
|
|
5753
|
+
unblockUser: (params, options = {}) => this.callApi({
|
|
5694
5754
|
path: "/users/blocks",
|
|
5695
5755
|
method: "DELETE",
|
|
5696
5756
|
params,
|
|
@@ -5722,7 +5782,7 @@ var TwitchApi = class {
|
|
|
5722
5782
|
*
|
|
5723
5783
|
* @see https://dev.twitch.tv/docs/api/reference#get-user-extensions
|
|
5724
5784
|
*/
|
|
5725
|
-
getUserExtensions:
|
|
5785
|
+
getUserExtensions: (options = {}) => this.callApi({
|
|
5726
5786
|
path: "/users/extensions/list",
|
|
5727
5787
|
options
|
|
5728
5788
|
}),
|
|
@@ -5757,7 +5817,7 @@ var TwitchApi = class {
|
|
|
5757
5817
|
*
|
|
5758
5818
|
* @see https://dev.twitch.tv/docs/api/reference#get-user-active-extensions
|
|
5759
5819
|
*/
|
|
5760
|
-
getUserActiveExtensions:
|
|
5820
|
+
getUserActiveExtensions: (params = null, options = {}) => this.callApi({
|
|
5761
5821
|
path: "/users/extensions",
|
|
5762
5822
|
params,
|
|
5763
5823
|
options
|
|
@@ -5798,7 +5858,7 @@ var TwitchApi = class {
|
|
|
5798
5858
|
*
|
|
5799
5859
|
* @see https://dev.twitch.tv/docs/api/reference#update-user-extensions
|
|
5800
5860
|
*/
|
|
5801
|
-
updateUserExtensions:
|
|
5861
|
+
updateUserExtensions: (body, options = {}) => this.callApi({
|
|
5802
5862
|
path: "/users/extensions",
|
|
5803
5863
|
method: "PUT",
|
|
5804
5864
|
body,
|
|
@@ -5848,7 +5908,7 @@ var TwitchApi = class {
|
|
|
5848
5908
|
*
|
|
5849
5909
|
* @see https://dev.twitch.tv/docs/api/reference#get-videos
|
|
5850
5910
|
*/
|
|
5851
|
-
getVideos:
|
|
5911
|
+
getVideos: (params = null, options = {}) => this.callApi({
|
|
5852
5912
|
path: "/videos",
|
|
5853
5913
|
params,
|
|
5854
5914
|
options
|
|
@@ -5885,7 +5945,7 @@ var TwitchApi = class {
|
|
|
5885
5945
|
*
|
|
5886
5946
|
* @see https://dev.twitch.tv/docs/api/reference#delete-videos
|
|
5887
5947
|
*/
|
|
5888
|
-
deleteVideos:
|
|
5948
|
+
deleteVideos: (params, options = {}) => this.callApi({
|
|
5889
5949
|
path: "/videos",
|
|
5890
5950
|
method: "DELETE",
|
|
5891
5951
|
params,
|
|
@@ -5949,7 +6009,7 @@ var TwitchApi = class {
|
|
|
5949
6009
|
*
|
|
5950
6010
|
* @see https://dev.twitch.tv/docs/api/reference#send-whisper
|
|
5951
6011
|
*/
|
|
5952
|
-
sendWhisper:
|
|
6012
|
+
sendWhisper: (params, body, options = {}) => this.callApi({
|
|
5953
6013
|
path: "/whispers",
|
|
5954
6014
|
method: "POST",
|
|
5955
6015
|
params,
|