steamutils 1.3.39 → 1.3.40

Sign up to get free protection for your applications and to get access to all the features.
package/remote.js ADDED
@@ -0,0 +1,4036 @@
1
+ import './string.js'
2
+ import axios from 'axios'
3
+ import SteamUser from "./index.js";
4
+
5
+ export default class RemoteSteamUser {
6
+
7
+ constructor(cookies) {
8
+ this._cookies = cookies
9
+
10
+ let {
11
+ steamMachineAuth,
12
+ steamLoginSecure,
13
+ steamRememberLogin,
14
+ steamID,
15
+ miniprofile,
16
+ sessionid,
17
+ } = SteamUser.parseCookie(this._cookies.toString())
18
+
19
+ this._myProfile = `profiles/${steamID}`
20
+
21
+ if (!sessionid) {
22
+ sessionid = SteamUser.generateSessionID()
23
+ this._cookies.setCookie("sessionid", sessionid)
24
+ }
25
+
26
+ this._sessionid = sessionid
27
+ this._steamid_user = steamID
28
+ this._miniprofile_user = miniprofile
29
+ this._steamMachineAuth = steamMachineAuth
30
+ this._steamLoginSecure = steamLoginSecure
31
+ this._steamRememberLogin = steamRememberLogin
32
+ }
33
+
34
+ async setSteamLanguage(language) {
35
+ if (!RemoteSteamUser.__appIndex) {
36
+ RemoteSteamUser.__appIndex = 0
37
+ }
38
+ RemoteSteamUser.__appIndex++
39
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
40
+ RemoteSteamUser.__appIndex = 0
41
+ }
42
+
43
+ const __params = [language];
44
+ if (__params.length === 1 && __params[0] === undefined) {
45
+ __params.length = 0
46
+ }
47
+
48
+ try {
49
+ const result = (
50
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
51
+ method: "setSteamLanguage",
52
+ params: __params,
53
+ cookies: this._cookies,
54
+ })
55
+ ).data?.result;
56
+ return result
57
+ } catch (e) {
58
+ }
59
+ }
60
+
61
+ async getCookies() {
62
+ if (!RemoteSteamUser.__appIndex) {
63
+ RemoteSteamUser.__appIndex = 0
64
+ }
65
+ RemoteSteamUser.__appIndex++
66
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
67
+ RemoteSteamUser.__appIndex = 0
68
+ }
69
+
70
+ const __params = [];
71
+ if (__params.length === 1 && __params[0] === undefined) {
72
+ __params.length = 0
73
+ }
74
+
75
+ try {
76
+ const result = (
77
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
78
+ method: "getCookies",
79
+ params: __params,
80
+ cookies: this._cookies,
81
+ })
82
+ ).data?.result;
83
+ return result
84
+ } catch (e) {
85
+ }
86
+ }
87
+
88
+ async getSteamidUser() {
89
+ if (!RemoteSteamUser.__appIndex) {
90
+ RemoteSteamUser.__appIndex = 0
91
+ }
92
+ RemoteSteamUser.__appIndex++
93
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
94
+ RemoteSteamUser.__appIndex = 0
95
+ }
96
+
97
+ const __params = [];
98
+ if (__params.length === 1 && __params[0] === undefined) {
99
+ __params.length = 0
100
+ }
101
+
102
+ try {
103
+ const result = (
104
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
105
+ method: "getSteamidUser",
106
+ params: __params,
107
+ cookies: this._cookies,
108
+ })
109
+ ).data?.result;
110
+ return result
111
+ } catch (e) {
112
+ }
113
+ }
114
+
115
+ async getMiniProfileUser() {
116
+ if (!RemoteSteamUser.__appIndex) {
117
+ RemoteSteamUser.__appIndex = 0
118
+ }
119
+ RemoteSteamUser.__appIndex++
120
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
121
+ RemoteSteamUser.__appIndex = 0
122
+ }
123
+
124
+ const __params = [];
125
+ if (__params.length === 1 && __params[0] === undefined) {
126
+ __params.length = 0
127
+ }
128
+
129
+ try {
130
+ const result = (
131
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
132
+ method: "getMiniProfileUser",
133
+ params: __params,
134
+ cookies: this._cookies,
135
+ })
136
+ ).data?.result;
137
+ return result
138
+ } catch (e) {
139
+ }
140
+ }
141
+
142
+ async getSessionid() {
143
+ if (!RemoteSteamUser.__appIndex) {
144
+ RemoteSteamUser.__appIndex = 0
145
+ }
146
+ RemoteSteamUser.__appIndex++
147
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
148
+ RemoteSteamUser.__appIndex = 0
149
+ }
150
+
151
+ const __params = [];
152
+ if (__params.length === 1 && __params[0] === undefined) {
153
+ __params.length = 0
154
+ }
155
+
156
+ try {
157
+ const result = (
158
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
159
+ method: "getSessionid",
160
+ params: __params,
161
+ cookies: this._cookies,
162
+ })
163
+ ).data?.result;
164
+ return result
165
+ } catch (e) {
166
+ }
167
+ }
168
+
169
+ async getSteamMachineAuth() {
170
+ if (!RemoteSteamUser.__appIndex) {
171
+ RemoteSteamUser.__appIndex = 0
172
+ }
173
+ RemoteSteamUser.__appIndex++
174
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
175
+ RemoteSteamUser.__appIndex = 0
176
+ }
177
+
178
+ const __params = [];
179
+ if (__params.length === 1 && __params[0] === undefined) {
180
+ __params.length = 0
181
+ }
182
+
183
+ try {
184
+ const result = (
185
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
186
+ method: "getSteamMachineAuth",
187
+ params: __params,
188
+ cookies: this._cookies,
189
+ })
190
+ ).data?.result;
191
+ return result
192
+ } catch (e) {
193
+ }
194
+ }
195
+
196
+ async getSteamUserProfileURL(steamID) {
197
+ if (!RemoteSteamUser.__appIndex) {
198
+ RemoteSteamUser.__appIndex = 0
199
+ }
200
+ RemoteSteamUser.__appIndex++
201
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
202
+ RemoteSteamUser.__appIndex = 0
203
+ }
204
+
205
+ const __params = [steamID];
206
+ if (__params.length === 1 && __params[0] === undefined) {
207
+ __params.length = 0
208
+ }
209
+
210
+ try {
211
+ const result = (
212
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
213
+ method: "getSteamUserProfileURL",
214
+ params: __params,
215
+ cookies: this._cookies,
216
+ })
217
+ ).data?.result;
218
+ return result
219
+ } catch (e) {
220
+ }
221
+ }
222
+
223
+ async getMyProfileURL() {
224
+ if (!RemoteSteamUser.__appIndex) {
225
+ RemoteSteamUser.__appIndex = 0
226
+ }
227
+ RemoteSteamUser.__appIndex++
228
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
229
+ RemoteSteamUser.__appIndex = 0
230
+ }
231
+
232
+ const __params = [];
233
+ if (__params.length === 1 && __params[0] === undefined) {
234
+ __params.length = 0
235
+ }
236
+
237
+ try {
238
+ const result = (
239
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
240
+ method: "getMyProfileURL",
241
+ params: __params,
242
+ cookies: this._cookies,
243
+ })
244
+ ).data?.result;
245
+ return result
246
+ } catch (e) {
247
+ }
248
+ }
249
+
250
+ async getUserSummary(steamID) {
251
+ if (!RemoteSteamUser.__appIndex) {
252
+ RemoteSteamUser.__appIndex = 0
253
+ }
254
+ RemoteSteamUser.__appIndex++
255
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
256
+ RemoteSteamUser.__appIndex = 0
257
+ }
258
+
259
+ const __params = [steamID];
260
+ if (__params.length === 1 && __params[0] === undefined) {
261
+ __params.length = 0
262
+ }
263
+
264
+ try {
265
+ const result = (
266
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
267
+ method: "getUserSummary",
268
+ params: __params,
269
+ cookies: this._cookies,
270
+ })
271
+ ).data?.result;
272
+ return result
273
+ } catch (e) {
274
+ }
275
+ }
276
+
277
+ async getUserSummaryFromProfile(steamID) {
278
+ if (!RemoteSteamUser.__appIndex) {
279
+ RemoteSteamUser.__appIndex = 0
280
+ }
281
+ RemoteSteamUser.__appIndex++
282
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
283
+ RemoteSteamUser.__appIndex = 0
284
+ }
285
+
286
+ const __params = [steamID];
287
+ if (__params.length === 1 && __params[0] === undefined) {
288
+ __params.length = 0
289
+ }
290
+
291
+ try {
292
+ const result = (
293
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
294
+ method: "getUserSummaryFromProfile",
295
+ params: __params,
296
+ cookies: this._cookies,
297
+ })
298
+ ).data?.result;
299
+ return result
300
+ } catch (e) {
301
+ }
302
+ }
303
+
304
+ async _formatHttpRequest(params) {
305
+ if (!RemoteSteamUser.__appIndex) {
306
+ RemoteSteamUser.__appIndex = 0
307
+ }
308
+ RemoteSteamUser.__appIndex++
309
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
310
+ RemoteSteamUser.__appIndex = 0
311
+ }
312
+
313
+ const __params = [params];
314
+ if (__params.length === 1 && __params[0] === undefined) {
315
+ __params.length = 0
316
+ }
317
+
318
+ try {
319
+ const result = (
320
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
321
+ method: "_formatHttpRequest",
322
+ params: __params,
323
+ cookies: this._cookies,
324
+ })
325
+ ).data?.result;
326
+ return result
327
+ } catch (e) {
328
+ }
329
+ }
330
+
331
+ async _httpRequest(params) {
332
+ if (!RemoteSteamUser.__appIndex) {
333
+ RemoteSteamUser.__appIndex = 0
334
+ }
335
+ RemoteSteamUser.__appIndex++
336
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
337
+ RemoteSteamUser.__appIndex = 0
338
+ }
339
+
340
+ const __params = [params];
341
+ if (__params.length === 1 && __params[0] === undefined) {
342
+ __params.length = 0
343
+ }
344
+
345
+ try {
346
+ const result = (
347
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
348
+ method: "_httpRequest",
349
+ params: __params,
350
+ cookies: this._cookies,
351
+ })
352
+ ).data?.result;
353
+ return result
354
+ } catch (e) {
355
+ }
356
+ }
357
+
358
+ async _httpMyRequest(params) {
359
+ if (!RemoteSteamUser.__appIndex) {
360
+ RemoteSteamUser.__appIndex = 0
361
+ }
362
+ RemoteSteamUser.__appIndex++
363
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
364
+ RemoteSteamUser.__appIndex = 0
365
+ }
366
+
367
+ const __params = [params];
368
+ if (__params.length === 1 && __params[0] === undefined) {
369
+ __params.length = 0
370
+ }
371
+
372
+ try {
373
+ const result = (
374
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
375
+ method: "_httpMyRequest",
376
+ params: __params,
377
+ cookies: this._cookies,
378
+ })
379
+ ).data?.result;
380
+ return result
381
+ } catch (e) {
382
+ }
383
+ }
384
+
385
+ async _httpRequestAjax(params) {
386
+ if (!RemoteSteamUser.__appIndex) {
387
+ RemoteSteamUser.__appIndex = 0
388
+ }
389
+ RemoteSteamUser.__appIndex++
390
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
391
+ RemoteSteamUser.__appIndex = 0
392
+ }
393
+
394
+ const __params = [params];
395
+ if (__params.length === 1 && __params[0] === undefined) {
396
+ __params.length = 0
397
+ }
398
+
399
+ try {
400
+ const result = (
401
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
402
+ method: "_httpRequestAjax",
403
+ params: __params,
404
+ cookies: this._cookies,
405
+ })
406
+ ).data?.result;
407
+ return result
408
+ } catch (e) {
409
+ }
410
+ }
411
+
412
+ async _httpMyRequestAjax(params) {
413
+ if (!RemoteSteamUser.__appIndex) {
414
+ RemoteSteamUser.__appIndex = 0
415
+ }
416
+ RemoteSteamUser.__appIndex++
417
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
418
+ RemoteSteamUser.__appIndex = 0
419
+ }
420
+
421
+ const __params = [params];
422
+ if (__params.length === 1 && __params[0] === undefined) {
423
+ __params.length = 0
424
+ }
425
+
426
+ try {
427
+ const result = (
428
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
429
+ method: "_httpMyRequestAjax",
430
+ params: __params,
431
+ cookies: this._cookies,
432
+ })
433
+ ).data?.result;
434
+ return result
435
+ } catch (e) {
436
+ }
437
+ }
438
+
439
+ async getQuickInviteData() {
440
+ if (!RemoteSteamUser.__appIndex) {
441
+ RemoteSteamUser.__appIndex = 0
442
+ }
443
+ RemoteSteamUser.__appIndex++
444
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
445
+ RemoteSteamUser.__appIndex = 0
446
+ }
447
+
448
+ const __params = [];
449
+ if (__params.length === 1 && __params[0] === undefined) {
450
+ __params.length = 0
451
+ }
452
+
453
+ try {
454
+ const result = (
455
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
456
+ method: "getQuickInviteData",
457
+ params: __params,
458
+ cookies: this._cookies,
459
+ })
460
+ ).data?.result;
461
+ return result
462
+ } catch (e) {
463
+ }
464
+ }
465
+
466
+ async getQuickInviteLink() {
467
+ if (!RemoteSteamUser.__appIndex) {
468
+ RemoteSteamUser.__appIndex = 0
469
+ }
470
+ RemoteSteamUser.__appIndex++
471
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
472
+ RemoteSteamUser.__appIndex = 0
473
+ }
474
+
475
+ const __params = [];
476
+ if (__params.length === 1 && __params[0] === undefined) {
477
+ __params.length = 0
478
+ }
479
+
480
+ try {
481
+ const result = (
482
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
483
+ method: "getQuickInviteLink",
484
+ params: __params,
485
+ cookies: this._cookies,
486
+ })
487
+ ).data?.result;
488
+ return result
489
+ } catch (e) {
490
+ }
491
+ }
492
+
493
+ async getCurrentQuickInviteTokens() {
494
+ if (!RemoteSteamUser.__appIndex) {
495
+ RemoteSteamUser.__appIndex = 0
496
+ }
497
+ RemoteSteamUser.__appIndex++
498
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
499
+ RemoteSteamUser.__appIndex = 0
500
+ }
501
+
502
+ const __params = [];
503
+ if (__params.length === 1 && __params[0] === undefined) {
504
+ __params.length = 0
505
+ }
506
+
507
+ try {
508
+ const result = (
509
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
510
+ method: "getCurrentQuickInviteTokens",
511
+ params: __params,
512
+ cookies: this._cookies,
513
+ })
514
+ ).data?.result;
515
+ return result
516
+ } catch (e) {
517
+ }
518
+ }
519
+
520
+ async acceptQuickInviteData(quickInviteData) {
521
+ if (!RemoteSteamUser.__appIndex) {
522
+ RemoteSteamUser.__appIndex = 0
523
+ }
524
+ RemoteSteamUser.__appIndex++
525
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
526
+ RemoteSteamUser.__appIndex = 0
527
+ }
528
+
529
+ const __params = [quickInviteData];
530
+ if (__params.length === 1 && __params[0] === undefined) {
531
+ __params.length = 0
532
+ }
533
+
534
+ try {
535
+ const result = (
536
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
537
+ method: "acceptQuickInviteData",
538
+ params: __params,
539
+ cookies: this._cookies,
540
+ })
541
+ ).data?.result;
542
+ return result
543
+ } catch (e) {
544
+ }
545
+ }
546
+
547
+ async acceptQuickInviteLink(quickInviteLink) {
548
+ if (!RemoteSteamUser.__appIndex) {
549
+ RemoteSteamUser.__appIndex = 0
550
+ }
551
+ RemoteSteamUser.__appIndex++
552
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
553
+ RemoteSteamUser.__appIndex = 0
554
+ }
555
+
556
+ const __params = [quickInviteLink];
557
+ if (__params.length === 1 && __params[0] === undefined) {
558
+ __params.length = 0
559
+ }
560
+
561
+ try {
562
+ const result = (
563
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
564
+ method: "acceptQuickInviteLink",
565
+ params: __params,
566
+ cookies: this._cookies,
567
+ })
568
+ ).data?.result;
569
+ return result
570
+ } catch (e) {
571
+ }
572
+ }
573
+
574
+ async _parseComments(html) {
575
+ if (!RemoteSteamUser.__appIndex) {
576
+ RemoteSteamUser.__appIndex = 0
577
+ }
578
+ RemoteSteamUser.__appIndex++
579
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
580
+ RemoteSteamUser.__appIndex = 0
581
+ }
582
+
583
+ const __params = [html];
584
+ if (__params.length === 1 && __params[0] === undefined) {
585
+ __params.length = 0
586
+ }
587
+
588
+ try {
589
+ const result = (
590
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
591
+ method: "_parseComments",
592
+ params: __params,
593
+ cookies: this._cookies,
594
+ })
595
+ ).data?.result;
596
+ return result
597
+ } catch (e) {
598
+ }
599
+ }
600
+
601
+ async getMyComments() {
602
+ if (!RemoteSteamUser.__appIndex) {
603
+ RemoteSteamUser.__appIndex = 0
604
+ }
605
+ RemoteSteamUser.__appIndex++
606
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
607
+ RemoteSteamUser.__appIndex = 0
608
+ }
609
+
610
+ const __params = [];
611
+ if (__params.length === 1 && __params[0] === undefined) {
612
+ __params.length = 0
613
+ }
614
+
615
+ try {
616
+ const result = (
617
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
618
+ method: "getMyComments",
619
+ params: __params,
620
+ cookies: this._cookies,
621
+ })
622
+ ).data?.result;
623
+ return result
624
+ } catch (e) {
625
+ }
626
+ }
627
+
628
+ async getUserComments(steamID) {
629
+ if (!RemoteSteamUser.__appIndex) {
630
+ RemoteSteamUser.__appIndex = 0
631
+ }
632
+ RemoteSteamUser.__appIndex++
633
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
634
+ RemoteSteamUser.__appIndex = 0
635
+ }
636
+
637
+ const __params = [steamID];
638
+ if (__params.length === 1 && __params[0] === undefined) {
639
+ __params.length = 0
640
+ }
641
+
642
+ try {
643
+ const result = (
644
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
645
+ method: "getUserComments",
646
+ params: __params,
647
+ cookies: this._cookies,
648
+ })
649
+ ).data?.result;
650
+ return result
651
+ } catch (e) {
652
+ }
653
+ }
654
+
655
+ async getGroupOverview({
656
+ groupURL,
657
+ gid, page,
658
+ content_only,
659
+ searchKey,
660
+ }) {
661
+ if (!RemoteSteamUser.__appIndex) {
662
+ RemoteSteamUser.__appIndex = 0
663
+ }
664
+ RemoteSteamUser.__appIndex++
665
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
666
+ RemoteSteamUser.__appIndex = 0
667
+ }
668
+
669
+ const __params = [{
670
+ groupURL,
671
+ gid, page,
672
+ content_only,
673
+ searchKey,
674
+ }];
675
+ if (__params.length === 1 && __params[0] === undefined) {
676
+ __params.length = 0
677
+ }
678
+
679
+ try {
680
+ const result = (
681
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
682
+ method: "getGroupOverview",
683
+ params: __params,
684
+ cookies: this._cookies,
685
+ })
686
+ ).data?.result;
687
+ return result
688
+ } catch (e) {
689
+ }
690
+ }
691
+
692
+ async getGroupMembers({
693
+ groupURL,
694
+ gid, page,
695
+ link,
696
+ content_only,
697
+ searchKey,
698
+ }) {
699
+ if (!RemoteSteamUser.__appIndex) {
700
+ RemoteSteamUser.__appIndex = 0
701
+ }
702
+ RemoteSteamUser.__appIndex++
703
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
704
+ RemoteSteamUser.__appIndex = 0
705
+ }
706
+
707
+ const __params = [{
708
+ groupURL,
709
+ gid, page,
710
+ link,
711
+ content_only,
712
+ searchKey,
713
+ }];
714
+ if (__params.length === 1 && __params[0] === undefined) {
715
+ __params.length = 0
716
+ }
717
+
718
+ try {
719
+ const result = (
720
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
721
+ method: "getGroupMembers",
722
+ params: __params,
723
+ cookies: this._cookies,
724
+ })
725
+ ).data?.result;
726
+ return result
727
+ } catch (e) {
728
+ }
729
+ }
730
+
731
+ async getGroupMembersFull({
732
+ groupURL,
733
+ gid,
734
+ cookie,
735
+ cbOnMember,
736
+ cbOnMembers,
737
+ content_only,
738
+ searchKey,
739
+ }) {
740
+ if (!RemoteSteamUser.__appIndex) {
741
+ RemoteSteamUser.__appIndex = 0
742
+ }
743
+ RemoteSteamUser.__appIndex++
744
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
745
+ RemoteSteamUser.__appIndex = 0
746
+ }
747
+
748
+ const __params = [{
749
+ groupURL,
750
+ gid,
751
+ cookie,
752
+ cbOnMember,
753
+ cbOnMembers,
754
+ content_only,
755
+ searchKey,
756
+ }];
757
+ if (__params.length === 1 && __params[0] === undefined) {
758
+ __params.length = 0
759
+ }
760
+
761
+ try {
762
+ const result = (
763
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
764
+ method: "getGroupMembersFull",
765
+ params: __params,
766
+ cookies: this._cookies,
767
+ })
768
+ ).data?.result;
769
+ return result
770
+ } catch (e) {
771
+ }
772
+ }
773
+
774
+ async _parseFriendList(result) {
775
+ if (!RemoteSteamUser.__appIndex) {
776
+ RemoteSteamUser.__appIndex = 0
777
+ }
778
+ RemoteSteamUser.__appIndex++
779
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
780
+ RemoteSteamUser.__appIndex = 0
781
+ }
782
+
783
+ const __params = [result];
784
+ if (__params.length === 1 && __params[0] === undefined) {
785
+ __params.length = 0
786
+ }
787
+
788
+ try {
789
+ const result = (
790
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
791
+ method: "_parseFriendList",
792
+ params: __params,
793
+ cookies: this._cookies,
794
+ })
795
+ ).data?.result;
796
+ return result
797
+ } catch (e) {
798
+ }
799
+ }
800
+
801
+ async getFollowingPlayersList(steamID) {
802
+ if (!RemoteSteamUser.__appIndex) {
803
+ RemoteSteamUser.__appIndex = 0
804
+ }
805
+ RemoteSteamUser.__appIndex++
806
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
807
+ RemoteSteamUser.__appIndex = 0
808
+ }
809
+
810
+ const __params = [steamID];
811
+ if (__params.length === 1 && __params[0] === undefined) {
812
+ __params.length = 0
813
+ }
814
+
815
+ try {
816
+ const result = (
817
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
818
+ method: "getFollowingPlayersList",
819
+ params: __params,
820
+ cookies: this._cookies,
821
+ })
822
+ ).data?.result;
823
+ return result
824
+ } catch (e) {
825
+ }
826
+ }
827
+
828
+ async getFriendsList(steamID) {
829
+ if (!RemoteSteamUser.__appIndex) {
830
+ RemoteSteamUser.__appIndex = 0
831
+ }
832
+ RemoteSteamUser.__appIndex++
833
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
834
+ RemoteSteamUser.__appIndex = 0
835
+ }
836
+
837
+ const __params = [steamID];
838
+ if (__params.length === 1 && __params[0] === undefined) {
839
+ __params.length = 0
840
+ }
841
+
842
+ try {
843
+ const result = (
844
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
845
+ method: "getFriendsList",
846
+ params: __params,
847
+ cookies: this._cookies,
848
+ })
849
+ ).data?.result;
850
+ return result
851
+ } catch (e) {
852
+ }
853
+ }
854
+
855
+ async getMyFriendsList() {
856
+ if (!RemoteSteamUser.__appIndex) {
857
+ RemoteSteamUser.__appIndex = 0
858
+ }
859
+ RemoteSteamUser.__appIndex++
860
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
861
+ RemoteSteamUser.__appIndex = 0
862
+ }
863
+
864
+ const __params = [];
865
+ if (__params.length === 1 && __params[0] === undefined) {
866
+ __params.length = 0
867
+ }
868
+
869
+ try {
870
+ const result = (
871
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
872
+ method: "getMyFriendsList",
873
+ params: __params,
874
+ cookies: this._cookies,
875
+ })
876
+ ).data?.result;
877
+ return result
878
+ } catch (e) {
879
+ }
880
+ }
881
+
882
+ async getMyFriendsIDList() {
883
+ if (!RemoteSteamUser.__appIndex) {
884
+ RemoteSteamUser.__appIndex = 0
885
+ }
886
+ RemoteSteamUser.__appIndex++
887
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
888
+ RemoteSteamUser.__appIndex = 0
889
+ }
890
+
891
+ const __params = [];
892
+ if (__params.length === 1 && __params[0] === undefined) {
893
+ __params.length = 0
894
+ }
895
+
896
+ try {
897
+ const result = (
898
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
899
+ method: "getMyFriendsIDList",
900
+ params: __params,
901
+ cookies: this._cookies,
902
+ })
903
+ ).data?.result;
904
+ return result
905
+ } catch (e) {
906
+ }
907
+ }
908
+
909
+ async getMyFollowingPlayersList() {
910
+ if (!RemoteSteamUser.__appIndex) {
911
+ RemoteSteamUser.__appIndex = 0
912
+ }
913
+ RemoteSteamUser.__appIndex++
914
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
915
+ RemoteSteamUser.__appIndex = 0
916
+ }
917
+
918
+ const __params = [];
919
+ if (__params.length === 1 && __params[0] === undefined) {
920
+ __params.length = 0
921
+ }
922
+
923
+ try {
924
+ const result = (
925
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
926
+ method: "getMyFollowingPlayersList",
927
+ params: __params,
928
+ cookies: this._cookies,
929
+ })
930
+ ).data?.result;
931
+ return result
932
+ } catch (e) {
933
+ }
934
+ }
935
+
936
+ async _parsePendingFriendList(html, selector) {
937
+ if (!RemoteSteamUser.__appIndex) {
938
+ RemoteSteamUser.__appIndex = 0
939
+ }
940
+ RemoteSteamUser.__appIndex++
941
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
942
+ RemoteSteamUser.__appIndex = 0
943
+ }
944
+
945
+ const __params = [html, selector];
946
+ if (__params.length === 1 && __params[0] === undefined) {
947
+ __params.length = 0
948
+ }
949
+
950
+ try {
951
+ const result = (
952
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
953
+ method: "_parsePendingFriendList",
954
+ params: __params,
955
+ cookies: this._cookies,
956
+ })
957
+ ).data?.result;
958
+ return result
959
+ } catch (e) {
960
+ }
961
+ }
962
+
963
+ async getPendingFriendList() {
964
+ if (!RemoteSteamUser.__appIndex) {
965
+ RemoteSteamUser.__appIndex = 0
966
+ }
967
+ RemoteSteamUser.__appIndex++
968
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
969
+ RemoteSteamUser.__appIndex = 0
970
+ }
971
+
972
+ const __params = [];
973
+ if (__params.length === 1 && __params[0] === undefined) {
974
+ __params.length = 0
975
+ }
976
+
977
+ try {
978
+ const result = (
979
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
980
+ method: "getPendingFriendList",
981
+ params: __params,
982
+ cookies: this._cookies,
983
+ })
984
+ ).data?.result;
985
+ return result
986
+ } catch (e) {
987
+ }
988
+ }
989
+
990
+ async getMatchHistory_initial(matchHistoryType) {
991
+ if (!RemoteSteamUser.__appIndex) {
992
+ RemoteSteamUser.__appIndex = 0
993
+ }
994
+ RemoteSteamUser.__appIndex++
995
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
996
+ RemoteSteamUser.__appIndex = 0
997
+ }
998
+
999
+ const __params = [matchHistoryType];
1000
+ if (__params.length === 1 && __params[0] === undefined) {
1001
+ __params.length = 0
1002
+ }
1003
+
1004
+ try {
1005
+ const result = (
1006
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1007
+ method: "getMatchHistory_initial",
1008
+ params: __params,
1009
+ cookies: this._cookies,
1010
+ })
1011
+ ).data?.result;
1012
+ return result
1013
+ } catch (e) {
1014
+ }
1015
+ }
1016
+
1017
+ async getClientJsToken(retry) {
1018
+ if (!RemoteSteamUser.__appIndex) {
1019
+ RemoteSteamUser.__appIndex = 0
1020
+ }
1021
+ RemoteSteamUser.__appIndex++
1022
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1023
+ RemoteSteamUser.__appIndex = 0
1024
+ }
1025
+
1026
+ const __params = [retry];
1027
+ if (__params.length === 1 && __params[0] === undefined) {
1028
+ __params.length = 0
1029
+ }
1030
+
1031
+ try {
1032
+ const result = (
1033
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1034
+ method: "getClientJsToken",
1035
+ params: __params,
1036
+ cookies: this._cookies,
1037
+ })
1038
+ ).data?.result;
1039
+ return result
1040
+ } catch (e) {
1041
+ }
1042
+ }
1043
+
1044
+ async _getHistoryMatches(matchHistoryType, token) {
1045
+ if (!RemoteSteamUser.__appIndex) {
1046
+ RemoteSteamUser.__appIndex = 0
1047
+ }
1048
+ RemoteSteamUser.__appIndex++
1049
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1050
+ RemoteSteamUser.__appIndex = 0
1051
+ }
1052
+
1053
+ const __params = [matchHistoryType, token];
1054
+ if (__params.length === 1 && __params[0] === undefined) {
1055
+ __params.length = 0
1056
+ }
1057
+
1058
+ try {
1059
+ const result = (
1060
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1061
+ method: "_getHistoryMatches",
1062
+ params: __params,
1063
+ cookies: this._cookies,
1064
+ })
1065
+ ).data?.result;
1066
+ return result
1067
+ } catch (e) {
1068
+ }
1069
+ }
1070
+
1071
+ async _parseMatchHistory(html) {
1072
+ if (!RemoteSteamUser.__appIndex) {
1073
+ RemoteSteamUser.__appIndex = 0
1074
+ }
1075
+ RemoteSteamUser.__appIndex++
1076
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1077
+ RemoteSteamUser.__appIndex = 0
1078
+ }
1079
+
1080
+ const __params = [html];
1081
+ if (__params.length === 1 && __params[0] === undefined) {
1082
+ __params.length = 0
1083
+ }
1084
+
1085
+ try {
1086
+ const result = (
1087
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1088
+ method: "_parseMatchHistory",
1089
+ params: __params,
1090
+ cookies: this._cookies,
1091
+ })
1092
+ ).data?.result;
1093
+ return result
1094
+ } catch (e) {
1095
+ }
1096
+ }
1097
+
1098
+ async getFullHistoryMatches({
1099
+ matchHistoryTypes,
1100
+ cbOnMatch,
1101
+ cbOnMatches,
1102
+ maxPage,
1103
+ Started_playing_CS_GO,
1104
+ shouldStop
1105
+ }) {
1106
+ if (!RemoteSteamUser.__appIndex) {
1107
+ RemoteSteamUser.__appIndex = 0
1108
+ }
1109
+ RemoteSteamUser.__appIndex++
1110
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1111
+ RemoteSteamUser.__appIndex = 0
1112
+ }
1113
+
1114
+ const __params = [{
1115
+ matchHistoryTypes, cbOnMatch, cbOnMatches, maxPage, Started_playing_CS_GO, shouldStop
1116
+ }];
1117
+ if (__params.length === 1 && __params[0] === undefined) {
1118
+ __params.length = 0
1119
+ }
1120
+
1121
+ try {
1122
+ const result = (
1123
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1124
+ method: "getFullHistoryMatches",
1125
+ params: __params,
1126
+ cookies: this._cookies,
1127
+ })
1128
+ ).data?.result;
1129
+ return result
1130
+ } catch (e) {
1131
+ }
1132
+ }
1133
+
1134
+ async _getFullHistoryMatches({
1135
+ matchHistoryType,
1136
+ cbOnMatch,
1137
+ cbOnMatches,
1138
+ maxPage,
1139
+ Started_playing_CS_GO,
1140
+ shouldStop,
1141
+ }) {
1142
+ if (!RemoteSteamUser.__appIndex) {
1143
+ RemoteSteamUser.__appIndex = 0
1144
+ }
1145
+ RemoteSteamUser.__appIndex++
1146
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1147
+ RemoteSteamUser.__appIndex = 0
1148
+ }
1149
+
1150
+ const __params = [{
1151
+ matchHistoryType,
1152
+ cbOnMatch,
1153
+ cbOnMatches,
1154
+ maxPage,
1155
+ Started_playing_CS_GO,
1156
+ shouldStop,
1157
+ }];
1158
+ if (__params.length === 1 && __params[0] === undefined) {
1159
+ __params.length = 0
1160
+ }
1161
+
1162
+ try {
1163
+ const result = (
1164
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1165
+ method: "_getFullHistoryMatches",
1166
+ params: __params,
1167
+ cookies: this._cookies,
1168
+ })
1169
+ ).data?.result;
1170
+ return result
1171
+ } catch (e) {
1172
+ }
1173
+ }
1174
+
1175
+ async followUser(steamID) {
1176
+ if (!RemoteSteamUser.__appIndex) {
1177
+ RemoteSteamUser.__appIndex = 0
1178
+ }
1179
+ RemoteSteamUser.__appIndex++
1180
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1181
+ RemoteSteamUser.__appIndex = 0
1182
+ }
1183
+
1184
+ const __params = [steamID];
1185
+ if (__params.length === 1 && __params[0] === undefined) {
1186
+ __params.length = 0
1187
+ }
1188
+
1189
+ try {
1190
+ const result = (
1191
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1192
+ method: "followUser",
1193
+ params: __params,
1194
+ cookies: this._cookies,
1195
+ })
1196
+ ).data?.result;
1197
+ return result
1198
+ } catch (e) {
1199
+ }
1200
+ }
1201
+
1202
+ async unfollowUser(steamID) {
1203
+ if (!RemoteSteamUser.__appIndex) {
1204
+ RemoteSteamUser.__appIndex = 0
1205
+ }
1206
+ RemoteSteamUser.__appIndex++
1207
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1208
+ RemoteSteamUser.__appIndex = 0
1209
+ }
1210
+
1211
+ const __params = [steamID];
1212
+ if (__params.length === 1 && __params[0] === undefined) {
1213
+ __params.length = 0
1214
+ }
1215
+
1216
+ try {
1217
+ const result = (
1218
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1219
+ method: "unfollowUser",
1220
+ params: __params,
1221
+ cookies: this._cookies,
1222
+ })
1223
+ ).data?.result;
1224
+ return result
1225
+ } catch (e) {
1226
+ }
1227
+ }
1228
+
1229
+ async unfollowUsers(steamIDs) {
1230
+ if (!RemoteSteamUser.__appIndex) {
1231
+ RemoteSteamUser.__appIndex = 0
1232
+ }
1233
+ RemoteSteamUser.__appIndex++
1234
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1235
+ RemoteSteamUser.__appIndex = 0
1236
+ }
1237
+
1238
+ const __params = [steamIDs];
1239
+ if (__params.length === 1 && __params[0] === undefined) {
1240
+ __params.length = 0
1241
+ }
1242
+
1243
+ try {
1244
+ const result = (
1245
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1246
+ method: "unfollowUsers",
1247
+ params: __params,
1248
+ cookies: this._cookies,
1249
+ })
1250
+ ).data?.result;
1251
+ return result
1252
+ } catch (e) {
1253
+ }
1254
+ }
1255
+
1256
+ async unfollowAllFollowUsers() {
1257
+ if (!RemoteSteamUser.__appIndex) {
1258
+ RemoteSteamUser.__appIndex = 0
1259
+ }
1260
+ RemoteSteamUser.__appIndex++
1261
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1262
+ RemoteSteamUser.__appIndex = 0
1263
+ }
1264
+
1265
+ const __params = [];
1266
+ if (__params.length === 1 && __params[0] === undefined) {
1267
+ __params.length = 0
1268
+ }
1269
+
1270
+ try {
1271
+ const result = (
1272
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1273
+ method: "unfollowAllFollowUsers",
1274
+ params: __params,
1275
+ cookies: this._cookies,
1276
+ })
1277
+ ).data?.result;
1278
+ return result
1279
+ } catch (e) {
1280
+ }
1281
+ }
1282
+
1283
+ async blockCommunicationUser(steamID) {
1284
+ if (!RemoteSteamUser.__appIndex) {
1285
+ RemoteSteamUser.__appIndex = 0
1286
+ }
1287
+ RemoteSteamUser.__appIndex++
1288
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1289
+ RemoteSteamUser.__appIndex = 0
1290
+ }
1291
+
1292
+ const __params = [steamID];
1293
+ if (__params.length === 1 && __params[0] === undefined) {
1294
+ __params.length = 0
1295
+ }
1296
+
1297
+ try {
1298
+ const result = (
1299
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1300
+ method: "blockCommunicationUser",
1301
+ params: __params,
1302
+ cookies: this._cookies,
1303
+ })
1304
+ ).data?.result;
1305
+ return result
1306
+ } catch (e) {
1307
+ }
1308
+ }
1309
+
1310
+ async unblockCommunicationUser(steamID) {
1311
+ if (!RemoteSteamUser.__appIndex) {
1312
+ RemoteSteamUser.__appIndex = 0
1313
+ }
1314
+ RemoteSteamUser.__appIndex++
1315
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1316
+ RemoteSteamUser.__appIndex = 0
1317
+ }
1318
+
1319
+ const __params = [steamID];
1320
+ if (__params.length === 1 && __params[0] === undefined) {
1321
+ __params.length = 0
1322
+ }
1323
+
1324
+ try {
1325
+ const result = (
1326
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1327
+ method: "unblockCommunicationUser",
1328
+ params: __params,
1329
+ cookies: this._cookies,
1330
+ })
1331
+ ).data?.result;
1332
+ return result
1333
+ } catch (e) {
1334
+ }
1335
+ }
1336
+
1337
+ async addFriendUser(steamID) {
1338
+ if (!RemoteSteamUser.__appIndex) {
1339
+ RemoteSteamUser.__appIndex = 0
1340
+ }
1341
+ RemoteSteamUser.__appIndex++
1342
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1343
+ RemoteSteamUser.__appIndex = 0
1344
+ }
1345
+
1346
+ const __params = [steamID];
1347
+ if (__params.length === 1 && __params[0] === undefined) {
1348
+ __params.length = 0
1349
+ }
1350
+
1351
+ try {
1352
+ const result = (
1353
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1354
+ method: "addFriendUser",
1355
+ params: __params,
1356
+ cookies: this._cookies,
1357
+ })
1358
+ ).data?.result;
1359
+ return result
1360
+ } catch (e) {
1361
+ }
1362
+ }
1363
+
1364
+ async removeFriend(steamID) {
1365
+ if (!RemoteSteamUser.__appIndex) {
1366
+ RemoteSteamUser.__appIndex = 0
1367
+ }
1368
+ RemoteSteamUser.__appIndex++
1369
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1370
+ RemoteSteamUser.__appIndex = 0
1371
+ }
1372
+
1373
+ const __params = [steamID];
1374
+ if (__params.length === 1 && __params[0] === undefined) {
1375
+ __params.length = 0
1376
+ }
1377
+
1378
+ try {
1379
+ const result = (
1380
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1381
+ method: "removeFriend",
1382
+ params: __params,
1383
+ cookies: this._cookies,
1384
+ })
1385
+ ).data?.result;
1386
+ return result
1387
+ } catch (e) {
1388
+ }
1389
+ }
1390
+
1391
+ async acceptFriendRequest(steamID) {
1392
+ if (!RemoteSteamUser.__appIndex) {
1393
+ RemoteSteamUser.__appIndex = 0
1394
+ }
1395
+ RemoteSteamUser.__appIndex++
1396
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1397
+ RemoteSteamUser.__appIndex = 0
1398
+ }
1399
+
1400
+ const __params = [steamID];
1401
+ if (__params.length === 1 && __params[0] === undefined) {
1402
+ __params.length = 0
1403
+ }
1404
+
1405
+ try {
1406
+ const result = (
1407
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1408
+ method: "acceptFriendRequest",
1409
+ params: __params,
1410
+ cookies: this._cookies,
1411
+ })
1412
+ ).data?.result;
1413
+ return result
1414
+ } catch (e) {
1415
+ }
1416
+ }
1417
+
1418
+ async cancelAddFriendUser(steamID) {
1419
+ if (!RemoteSteamUser.__appIndex) {
1420
+ RemoteSteamUser.__appIndex = 0
1421
+ }
1422
+ RemoteSteamUser.__appIndex++
1423
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1424
+ RemoteSteamUser.__appIndex = 0
1425
+ }
1426
+
1427
+ const __params = [steamID];
1428
+ if (__params.length === 1 && __params[0] === undefined) {
1429
+ __params.length = 0
1430
+ }
1431
+
1432
+ try {
1433
+ const result = (
1434
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1435
+ method: "cancelAddFriendUser",
1436
+ params: __params,
1437
+ cookies: this._cookies,
1438
+ })
1439
+ ).data?.result;
1440
+ return result
1441
+ } catch (e) {
1442
+ }
1443
+ }
1444
+
1445
+ async ignoreFriendRequest(steamID) {
1446
+ if (!RemoteSteamUser.__appIndex) {
1447
+ RemoteSteamUser.__appIndex = 0
1448
+ }
1449
+ RemoteSteamUser.__appIndex++
1450
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1451
+ RemoteSteamUser.__appIndex = 0
1452
+ }
1453
+
1454
+ const __params = [steamID];
1455
+ if (__params.length === 1 && __params[0] === undefined) {
1456
+ __params.length = 0
1457
+ }
1458
+
1459
+ try {
1460
+ const result = (
1461
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1462
+ method: "ignoreFriendRequest",
1463
+ params: __params,
1464
+ cookies: this._cookies,
1465
+ })
1466
+ ).data?.result;
1467
+ return result
1468
+ } catch (e) {
1469
+ }
1470
+ }
1471
+
1472
+ async setNickname(steamID, nickname) {
1473
+ if (!RemoteSteamUser.__appIndex) {
1474
+ RemoteSteamUser.__appIndex = 0
1475
+ }
1476
+ RemoteSteamUser.__appIndex++
1477
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1478
+ RemoteSteamUser.__appIndex = 0
1479
+ }
1480
+
1481
+ const __params = [steamID, nickname];
1482
+ if (__params.length === 1 && __params[0] === undefined) {
1483
+ __params.length = 0
1484
+ }
1485
+
1486
+ try {
1487
+ const result = (
1488
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1489
+ method: "setNickname",
1490
+ params: __params,
1491
+ cookies: this._cookies,
1492
+ })
1493
+ ).data?.result;
1494
+ return result
1495
+ } catch (e) {
1496
+ }
1497
+ }
1498
+
1499
+ async removeNickname(steamID) {
1500
+ if (!RemoteSteamUser.__appIndex) {
1501
+ RemoteSteamUser.__appIndex = 0
1502
+ }
1503
+ RemoteSteamUser.__appIndex++
1504
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1505
+ RemoteSteamUser.__appIndex = 0
1506
+ }
1507
+
1508
+ const __params = [steamID];
1509
+ if (__params.length === 1 && __params[0] === undefined) {
1510
+ __params.length = 0
1511
+ }
1512
+
1513
+ try {
1514
+ const result = (
1515
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1516
+ method: "removeNickname",
1517
+ params: __params,
1518
+ cookies: this._cookies,
1519
+ })
1520
+ ).data?.result;
1521
+ return result
1522
+ } catch (e) {
1523
+ }
1524
+ }
1525
+
1526
+ async getNameHistory(steamID) {
1527
+ if (!RemoteSteamUser.__appIndex) {
1528
+ RemoteSteamUser.__appIndex = 0
1529
+ }
1530
+ RemoteSteamUser.__appIndex++
1531
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1532
+ RemoteSteamUser.__appIndex = 0
1533
+ }
1534
+
1535
+ const __params = [steamID];
1536
+ if (__params.length === 1 && __params[0] === undefined) {
1537
+ __params.length = 0
1538
+ }
1539
+
1540
+ try {
1541
+ const result = (
1542
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1543
+ method: "getNameHistory",
1544
+ params: __params,
1545
+ cookies: this._cookies,
1546
+ })
1547
+ ).data?.result;
1548
+ return result
1549
+ } catch (e) {
1550
+ }
1551
+ }
1552
+
1553
+ async clearPreviousAliases() {
1554
+ if (!RemoteSteamUser.__appIndex) {
1555
+ RemoteSteamUser.__appIndex = 0
1556
+ }
1557
+ RemoteSteamUser.__appIndex++
1558
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1559
+ RemoteSteamUser.__appIndex = 0
1560
+ }
1561
+
1562
+ const __params = [];
1563
+ if (__params.length === 1 && __params[0] === undefined) {
1564
+ __params.length = 0
1565
+ }
1566
+
1567
+ try {
1568
+ const result = (
1569
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1570
+ method: "clearPreviousAliases",
1571
+ params: __params,
1572
+ cookies: this._cookies,
1573
+ })
1574
+ ).data?.result;
1575
+ return result
1576
+ } catch (e) {
1577
+ }
1578
+ }
1579
+
1580
+ async setupProfile() {
1581
+ if (!RemoteSteamUser.__appIndex) {
1582
+ RemoteSteamUser.__appIndex = 0
1583
+ }
1584
+ RemoteSteamUser.__appIndex++
1585
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1586
+ RemoteSteamUser.__appIndex = 0
1587
+ }
1588
+
1589
+ const __params = [];
1590
+ if (__params.length === 1 && __params[0] === undefined) {
1591
+ __params.length = 0
1592
+ }
1593
+
1594
+ try {
1595
+ const result = (
1596
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1597
+ method: "setupProfile",
1598
+ params: __params,
1599
+ cookies: this._cookies,
1600
+ })
1601
+ ).data?.result;
1602
+ return result
1603
+ } catch (e) {
1604
+ }
1605
+ }
1606
+
1607
+ async editMyProfile({
1608
+ personaName, realName, customURL, country, summary, hide_profile_awards,
1609
+ }) {
1610
+ if (!RemoteSteamUser.__appIndex) {
1611
+ RemoteSteamUser.__appIndex = 0
1612
+ }
1613
+ RemoteSteamUser.__appIndex++
1614
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1615
+ RemoteSteamUser.__appIndex = 0
1616
+ }
1617
+
1618
+ const __params = [{
1619
+ personaName, realName, customURL, country, summary, hide_profile_awards,
1620
+ }];
1621
+ if (__params.length === 1 && __params[0] === undefined) {
1622
+ __params.length = 0
1623
+ }
1624
+
1625
+ try {
1626
+ const result = (
1627
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1628
+ method: "editMyProfile",
1629
+ params: __params,
1630
+ cookies: this._cookies,
1631
+ })
1632
+ ).data?.result;
1633
+ return result
1634
+ } catch (e) {
1635
+ }
1636
+ }
1637
+
1638
+ async setPersonaName(name) {
1639
+ if (!RemoteSteamUser.__appIndex) {
1640
+ RemoteSteamUser.__appIndex = 0
1641
+ }
1642
+ RemoteSteamUser.__appIndex++
1643
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1644
+ RemoteSteamUser.__appIndex = 0
1645
+ }
1646
+
1647
+ const __params = [name];
1648
+ if (__params.length === 1 && __params[0] === undefined) {
1649
+ __params.length = 0
1650
+ }
1651
+
1652
+ try {
1653
+ const result = (
1654
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1655
+ method: "setPersonaName",
1656
+ params: __params,
1657
+ cookies: this._cookies,
1658
+ })
1659
+ ).data?.result;
1660
+ return result
1661
+ } catch (e) {
1662
+ }
1663
+ }
1664
+
1665
+ async getPrivacySettings() {
1666
+ if (!RemoteSteamUser.__appIndex) {
1667
+ RemoteSteamUser.__appIndex = 0
1668
+ }
1669
+ RemoteSteamUser.__appIndex++
1670
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1671
+ RemoteSteamUser.__appIndex = 0
1672
+ }
1673
+
1674
+ const __params = [];
1675
+ if (__params.length === 1 && __params[0] === undefined) {
1676
+ __params.length = 0
1677
+ }
1678
+
1679
+ try {
1680
+ const result = (
1681
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1682
+ method: "getPrivacySettings",
1683
+ params: __params,
1684
+ cookies: this._cookies,
1685
+ })
1686
+ ).data?.result;
1687
+ return result
1688
+ } catch (e) {
1689
+ }
1690
+ }
1691
+
1692
+ async updatePrivacySettings(privacySettings) {
1693
+ if (!RemoteSteamUser.__appIndex) {
1694
+ RemoteSteamUser.__appIndex = 0
1695
+ }
1696
+ RemoteSteamUser.__appIndex++
1697
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1698
+ RemoteSteamUser.__appIndex = 0
1699
+ }
1700
+
1701
+ const __params = [privacySettings];
1702
+ if (__params.length === 1 && __params[0] === undefined) {
1703
+ __params.length = 0
1704
+ }
1705
+
1706
+ try {
1707
+ const result = (
1708
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1709
+ method: "updatePrivacySettings",
1710
+ params: __params,
1711
+ cookies: this._cookies,
1712
+ })
1713
+ ).data?.result;
1714
+ return result
1715
+ } catch (e) {
1716
+ }
1717
+ }
1718
+
1719
+ async publicPrivacySettings() {
1720
+ if (!RemoteSteamUser.__appIndex) {
1721
+ RemoteSteamUser.__appIndex = 0
1722
+ }
1723
+ RemoteSteamUser.__appIndex++
1724
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1725
+ RemoteSteamUser.__appIndex = 0
1726
+ }
1727
+
1728
+ const __params = [];
1729
+ if (__params.length === 1 && __params[0] === undefined) {
1730
+ __params.length = 0
1731
+ }
1732
+
1733
+ try {
1734
+ const result = (
1735
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1736
+ method: "publicPrivacySettings",
1737
+ params: __params,
1738
+ cookies: this._cookies,
1739
+ })
1740
+ ).data?.result;
1741
+ return result
1742
+ } catch (e) {
1743
+ }
1744
+ }
1745
+
1746
+ async privatePrivacySettings() {
1747
+ if (!RemoteSteamUser.__appIndex) {
1748
+ RemoteSteamUser.__appIndex = 0
1749
+ }
1750
+ RemoteSteamUser.__appIndex++
1751
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1752
+ RemoteSteamUser.__appIndex = 0
1753
+ }
1754
+
1755
+ const __params = [];
1756
+ if (__params.length === 1 && __params[0] === undefined) {
1757
+ __params.length = 0
1758
+ }
1759
+
1760
+ try {
1761
+ const result = (
1762
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1763
+ method: "privatePrivacySettings",
1764
+ params: __params,
1765
+ cookies: this._cookies,
1766
+ })
1767
+ ).data?.result;
1768
+ return result
1769
+ } catch (e) {
1770
+ }
1771
+ }
1772
+
1773
+ async postComment(steamID, message) {
1774
+ if (!RemoteSteamUser.__appIndex) {
1775
+ RemoteSteamUser.__appIndex = 0
1776
+ }
1777
+ RemoteSteamUser.__appIndex++
1778
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1779
+ RemoteSteamUser.__appIndex = 0
1780
+ }
1781
+
1782
+ const __params = [steamID, message];
1783
+ if (__params.length === 1 && __params[0] === undefined) {
1784
+ __params.length = 0
1785
+ }
1786
+
1787
+ try {
1788
+ const result = (
1789
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1790
+ method: "postComment",
1791
+ params: __params,
1792
+ cookies: this._cookies,
1793
+ })
1794
+ ).data?.result;
1795
+ return result
1796
+ } catch (e) {
1797
+ }
1798
+ }
1799
+
1800
+ async deleteComment(steamID, gidcomment) {
1801
+ if (!RemoteSteamUser.__appIndex) {
1802
+ RemoteSteamUser.__appIndex = 0
1803
+ }
1804
+ RemoteSteamUser.__appIndex++
1805
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1806
+ RemoteSteamUser.__appIndex = 0
1807
+ }
1808
+
1809
+ const __params = [steamID, gidcomment];
1810
+ if (__params.length === 1 && __params[0] === undefined) {
1811
+ __params.length = 0
1812
+ }
1813
+
1814
+ try {
1815
+ const result = (
1816
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1817
+ method: "deleteComment",
1818
+ params: __params,
1819
+ cookies: this._cookies,
1820
+ })
1821
+ ).data?.result;
1822
+ return result
1823
+ } catch (e) {
1824
+ }
1825
+ }
1826
+
1827
+ async _formatCommentModel(comment) {
1828
+ if (!RemoteSteamUser.__appIndex) {
1829
+ RemoteSteamUser.__appIndex = 0
1830
+ }
1831
+ RemoteSteamUser.__appIndex++
1832
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1833
+ RemoteSteamUser.__appIndex = 0
1834
+ }
1835
+
1836
+ const __params = [comment];
1837
+ if (__params.length === 1 && __params[0] === undefined) {
1838
+ __params.length = 0
1839
+ }
1840
+
1841
+ try {
1842
+ const result = (
1843
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1844
+ method: "_formatCommentModel",
1845
+ params: __params,
1846
+ cookies: this._cookies,
1847
+ })
1848
+ ).data?.result;
1849
+ return result
1850
+ } catch (e) {
1851
+ }
1852
+ }
1853
+
1854
+ async _formatPlayingTime(hrs) {
1855
+ if (!RemoteSteamUser.__appIndex) {
1856
+ RemoteSteamUser.__appIndex = 0
1857
+ }
1858
+ RemoteSteamUser.__appIndex++
1859
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1860
+ RemoteSteamUser.__appIndex = 0
1861
+ }
1862
+
1863
+ const __params = [hrs];
1864
+ if (__params.length === 1 && __params[0] === undefined) {
1865
+ __params.length = 0
1866
+ }
1867
+
1868
+ try {
1869
+ const result = (
1870
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1871
+ method: "_formatPlayingTime",
1872
+ params: __params,
1873
+ cookies: this._cookies,
1874
+ })
1875
+ ).data?.result;
1876
+ return result
1877
+ } catch (e) {
1878
+ }
1879
+ }
1880
+
1881
+ async getFriendsThatPlay(appID, sorted) {
1882
+ if (!RemoteSteamUser.__appIndex) {
1883
+ RemoteSteamUser.__appIndex = 0
1884
+ }
1885
+ RemoteSteamUser.__appIndex++
1886
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1887
+ RemoteSteamUser.__appIndex = 0
1888
+ }
1889
+
1890
+ const __params = [appID, sorted];
1891
+ if (__params.length === 1 && __params[0] === undefined) {
1892
+ __params.length = 0
1893
+ }
1894
+
1895
+ try {
1896
+ const result = (
1897
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1898
+ method: "getFriendsThatPlay",
1899
+ params: __params,
1900
+ cookies: this._cookies,
1901
+ })
1902
+ ).data?.result;
1903
+ return result
1904
+ } catch (e) {
1905
+ }
1906
+ }
1907
+
1908
+ async getOwnedAppsDetail() {
1909
+ if (!RemoteSteamUser.__appIndex) {
1910
+ RemoteSteamUser.__appIndex = 0
1911
+ }
1912
+ RemoteSteamUser.__appIndex++
1913
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1914
+ RemoteSteamUser.__appIndex = 0
1915
+ }
1916
+
1917
+ const __params = [];
1918
+ if (__params.length === 1 && __params[0] === undefined) {
1919
+ __params.length = 0
1920
+ }
1921
+
1922
+ try {
1923
+ const result = (
1924
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1925
+ method: "getOwnedAppsDetail",
1926
+ params: __params,
1927
+ cookies: this._cookies,
1928
+ })
1929
+ ).data?.result;
1930
+ return result
1931
+ } catch (e) {
1932
+ }
1933
+ }
1934
+
1935
+ async GetOwnedApps() {
1936
+ if (!RemoteSteamUser.__appIndex) {
1937
+ RemoteSteamUser.__appIndex = 0
1938
+ }
1939
+ RemoteSteamUser.__appIndex++
1940
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1941
+ RemoteSteamUser.__appIndex = 0
1942
+ }
1943
+
1944
+ const __params = [];
1945
+ if (__params.length === 1 && __params[0] === undefined) {
1946
+ __params.length = 0
1947
+ }
1948
+
1949
+ try {
1950
+ const result = (
1951
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1952
+ method: "GetOwnedApps",
1953
+ params: __params,
1954
+ cookies: this._cookies,
1955
+ })
1956
+ ).data?.result;
1957
+ return result
1958
+ } catch (e) {
1959
+ }
1960
+ }
1961
+
1962
+ async getOwnedAppsID() {
1963
+ if (!RemoteSteamUser.__appIndex) {
1964
+ RemoteSteamUser.__appIndex = 0
1965
+ }
1966
+ RemoteSteamUser.__appIndex++
1967
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1968
+ RemoteSteamUser.__appIndex = 0
1969
+ }
1970
+
1971
+ const __params = [];
1972
+ if (__params.length === 1 && __params[0] === undefined) {
1973
+ __params.length = 0
1974
+ }
1975
+
1976
+ try {
1977
+ const result = (
1978
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
1979
+ method: "getOwnedAppsID",
1980
+ params: __params,
1981
+ cookies: this._cookies,
1982
+ })
1983
+ ).data?.result;
1984
+ return result
1985
+ } catch (e) {
1986
+ }
1987
+ }
1988
+
1989
+ async getDynamicStoreUserData() {
1990
+ if (!RemoteSteamUser.__appIndex) {
1991
+ RemoteSteamUser.__appIndex = 0
1992
+ }
1993
+ RemoteSteamUser.__appIndex++
1994
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
1995
+ RemoteSteamUser.__appIndex = 0
1996
+ }
1997
+
1998
+ const __params = [];
1999
+ if (__params.length === 1 && __params[0] === undefined) {
2000
+ __params.length = 0
2001
+ }
2002
+
2003
+ try {
2004
+ const result = (
2005
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2006
+ method: "getDynamicStoreUserData",
2007
+ params: __params,
2008
+ cookies: this._cookies,
2009
+ })
2010
+ ).data?.result;
2011
+ return result
2012
+ } catch (e) {
2013
+ }
2014
+ }
2015
+
2016
+ async getListGroupInvitable(userSteamID) {
2017
+ if (!RemoteSteamUser.__appIndex) {
2018
+ RemoteSteamUser.__appIndex = 0
2019
+ }
2020
+ RemoteSteamUser.__appIndex++
2021
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2022
+ RemoteSteamUser.__appIndex = 0
2023
+ }
2024
+
2025
+ const __params = [userSteamID];
2026
+ if (__params.length === 1 && __params[0] === undefined) {
2027
+ __params.length = 0
2028
+ }
2029
+
2030
+ try {
2031
+ const result = (
2032
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2033
+ method: "getListGroupInvitable",
2034
+ params: __params,
2035
+ cookies: this._cookies,
2036
+ })
2037
+ ).data?.result;
2038
+ return result
2039
+ } catch (e) {
2040
+ }
2041
+ }
2042
+
2043
+ async inviteUserToGroup(userSteamIDs, groupSteamID) {
2044
+ if (!RemoteSteamUser.__appIndex) {
2045
+ RemoteSteamUser.__appIndex = 0
2046
+ }
2047
+ RemoteSteamUser.__appIndex++
2048
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2049
+ RemoteSteamUser.__appIndex = 0
2050
+ }
2051
+
2052
+ const __params = [userSteamIDs, groupSteamID];
2053
+ if (__params.length === 1 && __params[0] === undefined) {
2054
+ __params.length = 0
2055
+ }
2056
+
2057
+ try {
2058
+ const result = (
2059
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2060
+ method: "inviteUserToGroup",
2061
+ params: __params,
2062
+ cookies: this._cookies,
2063
+ })
2064
+ ).data?.result;
2065
+ return result
2066
+ } catch (e) {
2067
+ }
2068
+ }
2069
+
2070
+ async inviteAllFriendToGroup(groupSteamID) {
2071
+ if (!RemoteSteamUser.__appIndex) {
2072
+ RemoteSteamUser.__appIndex = 0
2073
+ }
2074
+ RemoteSteamUser.__appIndex++
2075
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2076
+ RemoteSteamUser.__appIndex = 0
2077
+ }
2078
+
2079
+ const __params = [groupSteamID];
2080
+ if (__params.length === 1 && __params[0] === undefined) {
2081
+ __params.length = 0
2082
+ }
2083
+
2084
+ try {
2085
+ const result = (
2086
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2087
+ method: "inviteAllFriendToGroup",
2088
+ params: __params,
2089
+ cookies: this._cookies,
2090
+ })
2091
+ ).data?.result;
2092
+ return result
2093
+ } catch (e) {
2094
+ }
2095
+ }
2096
+
2097
+ async _respondToGroupInvite(groupSteamID, accept) {
2098
+ if (!RemoteSteamUser.__appIndex) {
2099
+ RemoteSteamUser.__appIndex = 0
2100
+ }
2101
+ RemoteSteamUser.__appIndex++
2102
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2103
+ RemoteSteamUser.__appIndex = 0
2104
+ }
2105
+
2106
+ const __params = [groupSteamID, accept];
2107
+ if (__params.length === 1 && __params[0] === undefined) {
2108
+ __params.length = 0
2109
+ }
2110
+
2111
+ try {
2112
+ const result = (
2113
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2114
+ method: "_respondToGroupInvite",
2115
+ params: __params,
2116
+ cookies: this._cookies,
2117
+ })
2118
+ ).data?.result;
2119
+ return result
2120
+ } catch (e) {
2121
+ }
2122
+ }
2123
+
2124
+ async acceptInviteUserToGroup(groupSteamID) {
2125
+ if (!RemoteSteamUser.__appIndex) {
2126
+ RemoteSteamUser.__appIndex = 0
2127
+ }
2128
+ RemoteSteamUser.__appIndex++
2129
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2130
+ RemoteSteamUser.__appIndex = 0
2131
+ }
2132
+
2133
+ const __params = [groupSteamID];
2134
+ if (__params.length === 1 && __params[0] === undefined) {
2135
+ __params.length = 0
2136
+ }
2137
+
2138
+ try {
2139
+ const result = (
2140
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2141
+ method: "acceptInviteUserToGroup",
2142
+ params: __params,
2143
+ cookies: this._cookies,
2144
+ })
2145
+ ).data?.result;
2146
+ return result
2147
+ } catch (e) {
2148
+ }
2149
+ }
2150
+
2151
+ async ignoreInviteUserToGroup(groupSteamID) {
2152
+ if (!RemoteSteamUser.__appIndex) {
2153
+ RemoteSteamUser.__appIndex = 0
2154
+ }
2155
+ RemoteSteamUser.__appIndex++
2156
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2157
+ RemoteSteamUser.__appIndex = 0
2158
+ }
2159
+
2160
+ const __params = [groupSteamID];
2161
+ if (__params.length === 1 && __params[0] === undefined) {
2162
+ __params.length = 0
2163
+ }
2164
+
2165
+ try {
2166
+ const result = (
2167
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2168
+ method: "ignoreInviteUserToGroup",
2169
+ params: __params,
2170
+ cookies: this._cookies,
2171
+ })
2172
+ ).data?.result;
2173
+ return result
2174
+ } catch (e) {
2175
+ }
2176
+ }
2177
+
2178
+ async leaveGroup(groupSteamID) {
2179
+ if (!RemoteSteamUser.__appIndex) {
2180
+ RemoteSteamUser.__appIndex = 0
2181
+ }
2182
+ RemoteSteamUser.__appIndex++
2183
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2184
+ RemoteSteamUser.__appIndex = 0
2185
+ }
2186
+
2187
+ const __params = [groupSteamID];
2188
+ if (__params.length === 1 && __params[0] === undefined) {
2189
+ __params.length = 0
2190
+ }
2191
+
2192
+ try {
2193
+ const result = (
2194
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2195
+ method: "leaveGroup",
2196
+ params: __params,
2197
+ cookies: this._cookies,
2198
+ })
2199
+ ).data?.result;
2200
+ return result
2201
+ } catch (e) {
2202
+ }
2203
+ }
2204
+
2205
+ async joinGroup(groupSteamID) {
2206
+ if (!RemoteSteamUser.__appIndex) {
2207
+ RemoteSteamUser.__appIndex = 0
2208
+ }
2209
+ RemoteSteamUser.__appIndex++
2210
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2211
+ RemoteSteamUser.__appIndex = 0
2212
+ }
2213
+
2214
+ const __params = [groupSteamID];
2215
+ if (__params.length === 1 && __params[0] === undefined) {
2216
+ __params.length = 0
2217
+ }
2218
+
2219
+ try {
2220
+ const result = (
2221
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2222
+ method: "joinGroup",
2223
+ params: __params,
2224
+ cookies: this._cookies,
2225
+ })
2226
+ ).data?.result;
2227
+ return result
2228
+ } catch (e) {
2229
+ }
2230
+ }
2231
+
2232
+ async getFriendsInCommon(steamID) {
2233
+ if (!RemoteSteamUser.__appIndex) {
2234
+ RemoteSteamUser.__appIndex = 0
2235
+ }
2236
+ RemoteSteamUser.__appIndex++
2237
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2238
+ RemoteSteamUser.__appIndex = 0
2239
+ }
2240
+
2241
+ const __params = [steamID];
2242
+ if (__params.length === 1 && __params[0] === undefined) {
2243
+ __params.length = 0
2244
+ }
2245
+
2246
+ try {
2247
+ const result = (
2248
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2249
+ method: "getFriendsInCommon",
2250
+ params: __params,
2251
+ cookies: this._cookies,
2252
+ })
2253
+ ).data?.result;
2254
+ return result
2255
+ } catch (e) {
2256
+ }
2257
+ }
2258
+
2259
+ async getFriendsInGroup(groupID) {
2260
+ if (!RemoteSteamUser.__appIndex) {
2261
+ RemoteSteamUser.__appIndex = 0
2262
+ }
2263
+ RemoteSteamUser.__appIndex++
2264
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2265
+ RemoteSteamUser.__appIndex = 0
2266
+ }
2267
+
2268
+ const __params = [groupID];
2269
+ if (__params.length === 1 && __params[0] === undefined) {
2270
+ __params.length = 0
2271
+ }
2272
+
2273
+ try {
2274
+ const result = (
2275
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2276
+ method: "getFriendsInGroup",
2277
+ params: __params,
2278
+ cookies: this._cookies,
2279
+ })
2280
+ ).data?.result;
2281
+ return result
2282
+ } catch (e) {
2283
+ }
2284
+ }
2285
+
2286
+ async _parseSteamWebAPIKey($) {
2287
+ if (!RemoteSteamUser.__appIndex) {
2288
+ RemoteSteamUser.__appIndex = 0
2289
+ }
2290
+ RemoteSteamUser.__appIndex++
2291
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2292
+ RemoteSteamUser.__appIndex = 0
2293
+ }
2294
+
2295
+ const __params = [$];
2296
+ if (__params.length === 1 && __params[0] === undefined) {
2297
+ __params.length = 0
2298
+ }
2299
+
2300
+ try {
2301
+ const result = (
2302
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2303
+ method: "_parseSteamWebAPIKey",
2304
+ params: __params,
2305
+ cookies: this._cookies,
2306
+ })
2307
+ ).data?.result;
2308
+ return result
2309
+ } catch (e) {
2310
+ }
2311
+ }
2312
+
2313
+ async getSteamWebAPIKey(domain) {
2314
+ if (!RemoteSteamUser.__appIndex) {
2315
+ RemoteSteamUser.__appIndex = 0
2316
+ }
2317
+ RemoteSteamUser.__appIndex++
2318
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2319
+ RemoteSteamUser.__appIndex = 0
2320
+ }
2321
+
2322
+ const __params = [domain];
2323
+ if (__params.length === 1 && __params[0] === undefined) {
2324
+ __params.length = 0
2325
+ }
2326
+
2327
+ try {
2328
+ const result = (
2329
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2330
+ method: "getSteamWebAPIKey",
2331
+ params: __params,
2332
+ cookies: this._cookies,
2333
+ })
2334
+ ).data?.result;
2335
+ return result
2336
+ } catch (e) {
2337
+ }
2338
+ }
2339
+
2340
+ async revokeSteamWebAPIKey() {
2341
+ if (!RemoteSteamUser.__appIndex) {
2342
+ RemoteSteamUser.__appIndex = 0
2343
+ }
2344
+ RemoteSteamUser.__appIndex++
2345
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2346
+ RemoteSteamUser.__appIndex = 0
2347
+ }
2348
+
2349
+ const __params = [];
2350
+ if (__params.length === 1 && __params[0] === undefined) {
2351
+ __params.length = 0
2352
+ }
2353
+
2354
+ try {
2355
+ const result = (
2356
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2357
+ method: "revokeSteamWebAPIKey",
2358
+ params: __params,
2359
+ cookies: this._cookies,
2360
+ })
2361
+ ).data?.result;
2362
+ return result
2363
+ } catch (e) {
2364
+ }
2365
+ }
2366
+
2367
+ async _parsePlayerListFromblotter_daily_rollup_line($, contentEl) {
2368
+ if (!RemoteSteamUser.__appIndex) {
2369
+ RemoteSteamUser.__appIndex = 0
2370
+ }
2371
+ RemoteSteamUser.__appIndex++
2372
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2373
+ RemoteSteamUser.__appIndex = 0
2374
+ }
2375
+
2376
+ const __params = [$, contentEl];
2377
+ if (__params.length === 1 && __params[0] === undefined) {
2378
+ __params.length = 0
2379
+ }
2380
+
2381
+ try {
2382
+ const result = (
2383
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2384
+ method: "_parsePlayerListFromblotter_daily_rollup_line",
2385
+ params: __params,
2386
+ cookies: this._cookies,
2387
+ })
2388
+ ).data?.result;
2389
+ return result
2390
+ } catch (e) {
2391
+ }
2392
+ }
2393
+
2394
+ async _parseAppIDFromLink(link) {
2395
+ if (!RemoteSteamUser.__appIndex) {
2396
+ RemoteSteamUser.__appIndex = 0
2397
+ }
2398
+ RemoteSteamUser.__appIndex++
2399
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2400
+ RemoteSteamUser.__appIndex = 0
2401
+ }
2402
+
2403
+ const __params = [link];
2404
+ if (__params.length === 1 && __params[0] === undefined) {
2405
+ __params.length = 0
2406
+ }
2407
+
2408
+ try {
2409
+ const result = (
2410
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2411
+ method: "_parseAppIDFromLink",
2412
+ params: __params,
2413
+ cookies: this._cookies,
2414
+ })
2415
+ ).data?.result;
2416
+ return result
2417
+ } catch (e) {
2418
+ }
2419
+ }
2420
+
2421
+ async _parseAppListFromBlotter($, contentEl) {
2422
+ if (!RemoteSteamUser.__appIndex) {
2423
+ RemoteSteamUser.__appIndex = 0
2424
+ }
2425
+ RemoteSteamUser.__appIndex++
2426
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2427
+ RemoteSteamUser.__appIndex = 0
2428
+ }
2429
+
2430
+ const __params = [$, contentEl];
2431
+ if (__params.length === 1 && __params[0] === undefined) {
2432
+ __params.length = 0
2433
+ }
2434
+
2435
+ try {
2436
+ const result = (
2437
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2438
+ method: "_parseAppListFromBlotter",
2439
+ params: __params,
2440
+ cookies: this._cookies,
2441
+ })
2442
+ ).data?.result;
2443
+ return result
2444
+ } catch (e) {
2445
+ }
2446
+ }
2447
+
2448
+ async _parseAchievedblotter_daily_rollup_line($, contentEl) {
2449
+ if (!RemoteSteamUser.__appIndex) {
2450
+ RemoteSteamUser.__appIndex = 0
2451
+ }
2452
+ RemoteSteamUser.__appIndex++
2453
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2454
+ RemoteSteamUser.__appIndex = 0
2455
+ }
2456
+
2457
+ const __params = [$, contentEl];
2458
+ if (__params.length === 1 && __params[0] === undefined) {
2459
+ __params.length = 0
2460
+ }
2461
+
2462
+ try {
2463
+ const result = (
2464
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2465
+ method: "_parseAchievedblotter_daily_rollup_line",
2466
+ params: __params,
2467
+ cookies: this._cookies,
2468
+ })
2469
+ ).data?.result;
2470
+ return result
2471
+ } catch (e) {
2472
+ }
2473
+ }
2474
+
2475
+ async _parseGroupListFromblotter_daily_rollup_line($, contentEl) {
2476
+ if (!RemoteSteamUser.__appIndex) {
2477
+ RemoteSteamUser.__appIndex = 0
2478
+ }
2479
+ RemoteSteamUser.__appIndex++
2480
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2481
+ RemoteSteamUser.__appIndex = 0
2482
+ }
2483
+
2484
+ const __params = [$, contentEl];
2485
+ if (__params.length === 1 && __params[0] === undefined) {
2486
+ __params.length = 0
2487
+ }
2488
+
2489
+ try {
2490
+ const result = (
2491
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2492
+ method: "_parseGroupListFromblotter_daily_rollup_line",
2493
+ params: __params,
2494
+ cookies: this._cookies,
2495
+ })
2496
+ ).data?.result;
2497
+ return result
2498
+ } catch (e) {
2499
+ }
2500
+ }
2501
+
2502
+ async _parseBlotterDailyRollup($, blotterBlockEl) {
2503
+ if (!RemoteSteamUser.__appIndex) {
2504
+ RemoteSteamUser.__appIndex = 0
2505
+ }
2506
+ RemoteSteamUser.__appIndex++
2507
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2508
+ RemoteSteamUser.__appIndex = 0
2509
+ }
2510
+
2511
+ const __params = [$, blotterBlockEl];
2512
+ if (__params.length === 1 && __params[0] === undefined) {
2513
+ __params.length = 0
2514
+ }
2515
+
2516
+ try {
2517
+ const result = (
2518
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2519
+ method: "_parseBlotterDailyRollup",
2520
+ params: __params,
2521
+ cookies: this._cookies,
2522
+ })
2523
+ ).data?.result;
2524
+ return result
2525
+ } catch (e) {
2526
+ }
2527
+ }
2528
+
2529
+ async _parseBlotterGamepurchase($, blotterBlockEl) {
2530
+ if (!RemoteSteamUser.__appIndex) {
2531
+ RemoteSteamUser.__appIndex = 0
2532
+ }
2533
+ RemoteSteamUser.__appIndex++
2534
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2535
+ RemoteSteamUser.__appIndex = 0
2536
+ }
2537
+
2538
+ const __params = [$, blotterBlockEl];
2539
+ if (__params.length === 1 && __params[0] === undefined) {
2540
+ __params.length = 0
2541
+ }
2542
+
2543
+ try {
2544
+ const result = (
2545
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2546
+ method: "_parseBlotterGamepurchase",
2547
+ params: __params,
2548
+ cookies: this._cookies,
2549
+ })
2550
+ ).data?.result;
2551
+ return result
2552
+ } catch (e) {
2553
+ }
2554
+ }
2555
+
2556
+ async getFriendActivity(start_or_url) {
2557
+ if (!RemoteSteamUser.__appIndex) {
2558
+ RemoteSteamUser.__appIndex = 0
2559
+ }
2560
+ RemoteSteamUser.__appIndex++
2561
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2562
+ RemoteSteamUser.__appIndex = 0
2563
+ }
2564
+
2565
+ const __params = [start_or_url];
2566
+ if (__params.length === 1 && __params[0] === undefined) {
2567
+ __params.length = 0
2568
+ }
2569
+
2570
+ try {
2571
+ const result = (
2572
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2573
+ method: "getFriendActivity",
2574
+ params: __params,
2575
+ cookies: this._cookies,
2576
+ })
2577
+ ).data?.result;
2578
+ return result
2579
+ } catch (e) {
2580
+ }
2581
+ }
2582
+
2583
+ async getFriendActivityFull({
2584
+ cbOnActivity,
2585
+ cbOnActivities,
2586
+ }) {
2587
+ if (!RemoteSteamUser.__appIndex) {
2588
+ RemoteSteamUser.__appIndex = 0
2589
+ }
2590
+ RemoteSteamUser.__appIndex++
2591
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2592
+ RemoteSteamUser.__appIndex = 0
2593
+ }
2594
+
2595
+ const __params = [{
2596
+ cbOnActivity,
2597
+ cbOnActivities,
2598
+ }];
2599
+ if (__params.length === 1 && __params[0] === undefined) {
2600
+ __params.length = 0
2601
+ }
2602
+
2603
+ try {
2604
+ const result = (
2605
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2606
+ method: "getFriendActivityFull",
2607
+ params: __params,
2608
+ cookies: this._cookies,
2609
+ })
2610
+ ).data?.result;
2611
+ return result
2612
+ } catch (e) {
2613
+ }
2614
+ }
2615
+
2616
+ async searchSteamUserByName(text, page) {
2617
+ if (!RemoteSteamUser.__appIndex) {
2618
+ RemoteSteamUser.__appIndex = 0
2619
+ }
2620
+ RemoteSteamUser.__appIndex++
2621
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2622
+ RemoteSteamUser.__appIndex = 0
2623
+ }
2624
+
2625
+ const __params = [text, page];
2626
+ if (__params.length === 1 && __params[0] === undefined) {
2627
+ __params.length = 0
2628
+ }
2629
+
2630
+ try {
2631
+ const result = (
2632
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2633
+ method: "searchSteamUserByName",
2634
+ params: __params,
2635
+ cookies: this._cookies,
2636
+ })
2637
+ ).data?.result;
2638
+ return result
2639
+ } catch (e) {
2640
+ }
2641
+ }
2642
+
2643
+ async getMyGroupsList() {
2644
+ if (!RemoteSteamUser.__appIndex) {
2645
+ RemoteSteamUser.__appIndex = 0
2646
+ }
2647
+ RemoteSteamUser.__appIndex++
2648
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2649
+ RemoteSteamUser.__appIndex = 0
2650
+ }
2651
+
2652
+ const __params = [];
2653
+ if (__params.length === 1 && __params[0] === undefined) {
2654
+ __params.length = 0
2655
+ }
2656
+
2657
+ try {
2658
+ const result = (
2659
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2660
+ method: "getMyGroupsList",
2661
+ params: __params,
2662
+ cookies: this._cookies,
2663
+ })
2664
+ ).data?.result;
2665
+ return result
2666
+ } catch (e) {
2667
+ }
2668
+ }
2669
+
2670
+ async getUserGroupsList(steamID) {
2671
+ if (!RemoteSteamUser.__appIndex) {
2672
+ RemoteSteamUser.__appIndex = 0
2673
+ }
2674
+ RemoteSteamUser.__appIndex++
2675
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2676
+ RemoteSteamUser.__appIndex = 0
2677
+ }
2678
+
2679
+ const __params = [steamID];
2680
+ if (__params.length === 1 && __params[0] === undefined) {
2681
+ __params.length = 0
2682
+ }
2683
+
2684
+ try {
2685
+ const result = (
2686
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2687
+ method: "getUserGroupsList",
2688
+ params: __params,
2689
+ cookies: this._cookies,
2690
+ })
2691
+ ).data?.result;
2692
+ return result
2693
+ } catch (e) {
2694
+ }
2695
+ }
2696
+
2697
+ async getNotifications() {
2698
+ if (!RemoteSteamUser.__appIndex) {
2699
+ RemoteSteamUser.__appIndex = 0
2700
+ }
2701
+ RemoteSteamUser.__appIndex++
2702
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2703
+ RemoteSteamUser.__appIndex = 0
2704
+ }
2705
+
2706
+ const __params = [];
2707
+ if (__params.length === 1 && __params[0] === undefined) {
2708
+ __params.length = 0
2709
+ }
2710
+
2711
+ try {
2712
+ const result = (
2713
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2714
+ method: "getNotifications",
2715
+ params: __params,
2716
+ cookies: this._cookies,
2717
+ })
2718
+ ).data?.result;
2719
+ return result
2720
+ } catch (e) {
2721
+ }
2722
+ }
2723
+
2724
+ async addFreeLicense(packageID) {
2725
+ if (!RemoteSteamUser.__appIndex) {
2726
+ RemoteSteamUser.__appIndex = 0
2727
+ }
2728
+ RemoteSteamUser.__appIndex++
2729
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2730
+ RemoteSteamUser.__appIndex = 0
2731
+ }
2732
+
2733
+ const __params = [packageID];
2734
+ if (__params.length === 1 && __params[0] === undefined) {
2735
+ __params.length = 0
2736
+ }
2737
+
2738
+ try {
2739
+ const result = (
2740
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2741
+ method: "addFreeLicense",
2742
+ params: __params,
2743
+ cookies: this._cookies,
2744
+ })
2745
+ ).data?.result;
2746
+ return result
2747
+ } catch (e) {
2748
+ }
2749
+ }
2750
+
2751
+ async addSubFreeLicense(subid) {
2752
+ if (!RemoteSteamUser.__appIndex) {
2753
+ RemoteSteamUser.__appIndex = 0
2754
+ }
2755
+ RemoteSteamUser.__appIndex++
2756
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2757
+ RemoteSteamUser.__appIndex = 0
2758
+ }
2759
+
2760
+ const __params = [subid];
2761
+ if (__params.length === 1 && __params[0] === undefined) {
2762
+ __params.length = 0
2763
+ }
2764
+
2765
+ try {
2766
+ const result = (
2767
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2768
+ method: "addSubFreeLicense",
2769
+ params: __params,
2770
+ cookies: this._cookies,
2771
+ })
2772
+ ).data?.result;
2773
+ return result
2774
+ } catch (e) {
2775
+ }
2776
+ }
2777
+
2778
+ async getCurrentSteamLogin() {
2779
+ if (!RemoteSteamUser.__appIndex) {
2780
+ RemoteSteamUser.__appIndex = 0
2781
+ }
2782
+ RemoteSteamUser.__appIndex++
2783
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2784
+ RemoteSteamUser.__appIndex = 0
2785
+ }
2786
+
2787
+ const __params = [];
2788
+ if (__params.length === 1 && __params[0] === undefined) {
2789
+ __params.length = 0
2790
+ }
2791
+
2792
+ try {
2793
+ const result = (
2794
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2795
+ method: "getCurrentSteamLogin",
2796
+ params: __params,
2797
+ cookies: this._cookies,
2798
+ })
2799
+ ).data?.result;
2800
+ return result
2801
+ } catch (e) {
2802
+ }
2803
+ }
2804
+
2805
+ async setLanguagePreferences() {
2806
+ if (!RemoteSteamUser.__appIndex) {
2807
+ RemoteSteamUser.__appIndex = 0
2808
+ }
2809
+ RemoteSteamUser.__appIndex++
2810
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2811
+ RemoteSteamUser.__appIndex = 0
2812
+ }
2813
+
2814
+ const __params = [];
2815
+ if (__params.length === 1 && __params[0] === undefined) {
2816
+ __params.length = 0
2817
+ }
2818
+
2819
+ try {
2820
+ const result = (
2821
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2822
+ method: "setLanguagePreferences",
2823
+ params: __params,
2824
+ cookies: this._cookies,
2825
+ })
2826
+ ).data?.result;
2827
+ return result
2828
+ } catch (e) {
2829
+ }
2830
+ }
2831
+
2832
+ async ChangeLanguage() {
2833
+ if (!RemoteSteamUser.__appIndex) {
2834
+ RemoteSteamUser.__appIndex = 0
2835
+ }
2836
+ RemoteSteamUser.__appIndex++
2837
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2838
+ RemoteSteamUser.__appIndex = 0
2839
+ }
2840
+
2841
+ const __params = [];
2842
+ if (__params.length === 1 && __params[0] === undefined) {
2843
+ __params.length = 0
2844
+ }
2845
+
2846
+ try {
2847
+ const result = (
2848
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2849
+ method: "ChangeLanguage",
2850
+ params: __params,
2851
+ cookies: this._cookies,
2852
+ })
2853
+ ).data?.result;
2854
+ return result
2855
+ } catch (e) {
2856
+ }
2857
+ }
2858
+
2859
+ async getCompetitiveCooldownLevel() {
2860
+ if (!RemoteSteamUser.__appIndex) {
2861
+ RemoteSteamUser.__appIndex = 0
2862
+ }
2863
+ RemoteSteamUser.__appIndex++
2864
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2865
+ RemoteSteamUser.__appIndex = 0
2866
+ }
2867
+
2868
+ const __params = [];
2869
+ if (__params.length === 1 && __params[0] === undefined) {
2870
+ __params.length = 0
2871
+ }
2872
+
2873
+ try {
2874
+ const result = (
2875
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2876
+ method: "getCompetitiveCooldownLevel",
2877
+ params: __params,
2878
+ cookies: this._cookies,
2879
+ })
2880
+ ).data?.result;
2881
+ return result
2882
+ } catch (e) {
2883
+ }
2884
+ }
2885
+
2886
+ async getPersonalGameDataAccountInformation() {
2887
+ if (!RemoteSteamUser.__appIndex) {
2888
+ RemoteSteamUser.__appIndex = 0
2889
+ }
2890
+ RemoteSteamUser.__appIndex++
2891
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2892
+ RemoteSteamUser.__appIndex = 0
2893
+ }
2894
+
2895
+ const __params = [];
2896
+ if (__params.length === 1 && __params[0] === undefined) {
2897
+ __params.length = 0
2898
+ }
2899
+
2900
+ try {
2901
+ const result = (
2902
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2903
+ method: "getPersonalGameDataAccountInformation",
2904
+ params: __params,
2905
+ cookies: this._cookies,
2906
+ })
2907
+ ).data?.result;
2908
+ return result
2909
+ } catch (e) {
2910
+ }
2911
+ }
2912
+
2913
+ async resolveUsers(steamIDs) {
2914
+ if (!RemoteSteamUser.__appIndex) {
2915
+ RemoteSteamUser.__appIndex = 0
2916
+ }
2917
+ RemoteSteamUser.__appIndex++
2918
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2919
+ RemoteSteamUser.__appIndex = 0
2920
+ }
2921
+
2922
+ const __params = [steamIDs];
2923
+ if (__params.length === 1 && __params[0] === undefined) {
2924
+ __params.length = 0
2925
+ }
2926
+
2927
+ try {
2928
+ const result = (
2929
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2930
+ method: "resolveUsers",
2931
+ params: __params,
2932
+ cookies: this._cookies,
2933
+ })
2934
+ ).data?.result;
2935
+ return result
2936
+ } catch (e) {
2937
+ }
2938
+ }
2939
+
2940
+ async testFullLanguage(cb) {
2941
+ if (!RemoteSteamUser.__appIndex) {
2942
+ RemoteSteamUser.__appIndex = 0
2943
+ }
2944
+ RemoteSteamUser.__appIndex++
2945
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2946
+ RemoteSteamUser.__appIndex = 0
2947
+ }
2948
+
2949
+ const __params = [cb];
2950
+ if (__params.length === 1 && __params[0] === undefined) {
2951
+ __params.length = 0
2952
+ }
2953
+
2954
+ try {
2955
+ const result = (
2956
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2957
+ method: "testFullLanguage",
2958
+ params: __params,
2959
+ cookies: this._cookies,
2960
+ })
2961
+ ).data?.result;
2962
+ return result
2963
+ } catch (e) {
2964
+ }
2965
+ }
2966
+
2967
+ async testNotYetSetupTextList(steamID) {
2968
+ if (!RemoteSteamUser.__appIndex) {
2969
+ RemoteSteamUser.__appIndex = 0
2970
+ }
2971
+ RemoteSteamUser.__appIndex++
2972
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
2973
+ RemoteSteamUser.__appIndex = 0
2974
+ }
2975
+
2976
+ const __params = [steamID];
2977
+ if (__params.length === 1 && __params[0] === undefined) {
2978
+ __params.length = 0
2979
+ }
2980
+
2981
+ try {
2982
+ const result = (
2983
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
2984
+ method: "testNotYetSetupTextList",
2985
+ params: __params,
2986
+ cookies: this._cookies,
2987
+ })
2988
+ ).data?.result;
2989
+ return result
2990
+ } catch (e) {
2991
+ }
2992
+ }
2993
+
2994
+ async testPrivateText(steamID) {
2995
+ if (!RemoteSteamUser.__appIndex) {
2996
+ RemoteSteamUser.__appIndex = 0
2997
+ }
2998
+ RemoteSteamUser.__appIndex++
2999
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3000
+ RemoteSteamUser.__appIndex = 0
3001
+ }
3002
+
3003
+ const __params = [steamID];
3004
+ if (__params.length === 1 && __params[0] === undefined) {
3005
+ __params.length = 0
3006
+ }
3007
+
3008
+ try {
3009
+ const result = (
3010
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3011
+ method: "testPrivateText",
3012
+ params: __params,
3013
+ cookies: this._cookies,
3014
+ })
3015
+ ).data?.result;
3016
+ return result
3017
+ } catch (e) {
3018
+ }
3019
+ }
3020
+
3021
+ async testGameBan(steamID) {
3022
+ if (!RemoteSteamUser.__appIndex) {
3023
+ RemoteSteamUser.__appIndex = 0
3024
+ }
3025
+ RemoteSteamUser.__appIndex++
3026
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3027
+ RemoteSteamUser.__appIndex = 0
3028
+ }
3029
+
3030
+ const __params = [steamID];
3031
+ if (__params.length === 1 && __params[0] === undefined) {
3032
+ __params.length = 0
3033
+ }
3034
+
3035
+ try {
3036
+ const result = (
3037
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3038
+ method: "testGameBan",
3039
+ params: __params,
3040
+ cookies: this._cookies,
3041
+ })
3042
+ ).data?.result;
3043
+ return result
3044
+ } catch (e) {
3045
+ }
3046
+ }
3047
+
3048
+ async getSteamGuardStatus() {
3049
+ if (!RemoteSteamUser.__appIndex) {
3050
+ RemoteSteamUser.__appIndex = 0
3051
+ }
3052
+ RemoteSteamUser.__appIndex++
3053
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3054
+ RemoteSteamUser.__appIndex = 0
3055
+ }
3056
+
3057
+ const __params = [];
3058
+ if (__params.length === 1 && __params[0] === undefined) {
3059
+ __params.length = 0
3060
+ }
3061
+
3062
+ try {
3063
+ const result = (
3064
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3065
+ method: "getSteamGuardStatus",
3066
+ params: __params,
3067
+ cookies: this._cookies,
3068
+ })
3069
+ ).data?.result;
3070
+ return result
3071
+ } catch (e) {
3072
+ }
3073
+ }
3074
+
3075
+ async turningSteamGuardOff() {
3076
+ if (!RemoteSteamUser.__appIndex) {
3077
+ RemoteSteamUser.__appIndex = 0
3078
+ }
3079
+ RemoteSteamUser.__appIndex++
3080
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3081
+ RemoteSteamUser.__appIndex = 0
3082
+ }
3083
+
3084
+ const __params = [];
3085
+ if (__params.length === 1 && __params[0] === undefined) {
3086
+ __params.length = 0
3087
+ }
3088
+
3089
+ try {
3090
+ const result = (
3091
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3092
+ method: "turningSteamGuardOff",
3093
+ params: __params,
3094
+ cookies: this._cookies,
3095
+ })
3096
+ ).data?.result;
3097
+ return result
3098
+ } catch (e) {
3099
+ }
3100
+ }
3101
+
3102
+ async turningEmailAuthenticatorCheckOn() {
3103
+ if (!RemoteSteamUser.__appIndex) {
3104
+ RemoteSteamUser.__appIndex = 0
3105
+ }
3106
+ RemoteSteamUser.__appIndex++
3107
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3108
+ RemoteSteamUser.__appIndex = 0
3109
+ }
3110
+
3111
+ const __params = [];
3112
+ if (__params.length === 1 && __params[0] === undefined) {
3113
+ __params.length = 0
3114
+ }
3115
+
3116
+ try {
3117
+ const result = (
3118
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3119
+ method: "turningEmailAuthenticatorCheckOn",
3120
+ params: __params,
3121
+ cookies: this._cookies,
3122
+ })
3123
+ ).data?.result;
3124
+ return result
3125
+ } catch (e) {
3126
+ }
3127
+ }
3128
+
3129
+ async getPhoneManage() {
3130
+ if (!RemoteSteamUser.__appIndex) {
3131
+ RemoteSteamUser.__appIndex = 0
3132
+ }
3133
+ RemoteSteamUser.__appIndex++
3134
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3135
+ RemoteSteamUser.__appIndex = 0
3136
+ }
3137
+
3138
+ const __params = [];
3139
+ if (__params.length === 1 && __params[0] === undefined) {
3140
+ __params.length = 0
3141
+ }
3142
+
3143
+ try {
3144
+ const result = (
3145
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3146
+ method: "getPhoneManage",
3147
+ params: __params,
3148
+ cookies: this._cookies,
3149
+ })
3150
+ ).data?.result;
3151
+ return result
3152
+ } catch (e) {
3153
+ }
3154
+ }
3155
+
3156
+ async addPhoneNumber(phone) {
3157
+ if (!RemoteSteamUser.__appIndex) {
3158
+ RemoteSteamUser.__appIndex = 0
3159
+ }
3160
+ RemoteSteamUser.__appIndex++
3161
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3162
+ RemoteSteamUser.__appIndex = 0
3163
+ }
3164
+
3165
+ const __params = [phone];
3166
+ if (__params.length === 1 && __params[0] === undefined) {
3167
+ __params.length = 0
3168
+ }
3169
+
3170
+ try {
3171
+ const result = (
3172
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3173
+ method: "addPhoneNumber",
3174
+ params: __params,
3175
+ cookies: this._cookies,
3176
+ })
3177
+ ).data?.result;
3178
+ return result
3179
+ } catch (e) {
3180
+ }
3181
+ }
3182
+
3183
+ async sendOtpConfirmPhoneForAdd() {
3184
+ if (!RemoteSteamUser.__appIndex) {
3185
+ RemoteSteamUser.__appIndex = 0
3186
+ }
3187
+ RemoteSteamUser.__appIndex++
3188
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3189
+ RemoteSteamUser.__appIndex = 0
3190
+ }
3191
+
3192
+ const __params = [];
3193
+ if (__params.length === 1 && __params[0] === undefined) {
3194
+ __params.length = 0
3195
+ }
3196
+
3197
+ try {
3198
+ const result = (
3199
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3200
+ method: "sendOtpConfirmPhoneForAdd",
3201
+ params: __params,
3202
+ cookies: this._cookies,
3203
+ })
3204
+ ).data?.result;
3205
+ return result
3206
+ } catch (e) {
3207
+ }
3208
+ }
3209
+
3210
+ async confirmPhoneCodeForAdd(code) {
3211
+ if (!RemoteSteamUser.__appIndex) {
3212
+ RemoteSteamUser.__appIndex = 0
3213
+ }
3214
+ RemoteSteamUser.__appIndex++
3215
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3216
+ RemoteSteamUser.__appIndex = 0
3217
+ }
3218
+
3219
+ const __params = [code];
3220
+ if (__params.length === 1 && __params[0] === undefined) {
3221
+ __params.length = 0
3222
+ }
3223
+
3224
+ try {
3225
+ const result = (
3226
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3227
+ method: "confirmPhoneCodeForAdd",
3228
+ params: __params,
3229
+ cookies: this._cookies,
3230
+ })
3231
+ ).data?.result;
3232
+ return result
3233
+ } catch (e) {
3234
+ }
3235
+ }
3236
+
3237
+ async removePhoneNumber() {
3238
+ if (!RemoteSteamUser.__appIndex) {
3239
+ RemoteSteamUser.__appIndex = 0
3240
+ }
3241
+ RemoteSteamUser.__appIndex++
3242
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3243
+ RemoteSteamUser.__appIndex = 0
3244
+ }
3245
+
3246
+ const __params = [];
3247
+ if (__params.length === 1 && __params[0] === undefined) {
3248
+ __params.length = 0
3249
+ }
3250
+
3251
+ try {
3252
+ const result = (
3253
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3254
+ method: "removePhoneNumber",
3255
+ params: __params,
3256
+ cookies: this._cookies,
3257
+ })
3258
+ ).data?.result;
3259
+ return result
3260
+ } catch (e) {
3261
+ }
3262
+ }
3263
+
3264
+ async removePhoneNumberConfirmOptCode(s, code) {
3265
+ if (!RemoteSteamUser.__appIndex) {
3266
+ RemoteSteamUser.__appIndex = 0
3267
+ }
3268
+ RemoteSteamUser.__appIndex++
3269
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3270
+ RemoteSteamUser.__appIndex = 0
3271
+ }
3272
+
3273
+ const __params = [s, code];
3274
+ if (__params.length === 1 && __params[0] === undefined) {
3275
+ __params.length = 0
3276
+ }
3277
+
3278
+ try {
3279
+ const result = (
3280
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3281
+ method: "removePhoneNumberConfirmOptCode",
3282
+ params: __params,
3283
+ cookies: this._cookies,
3284
+ })
3285
+ ).data?.result;
3286
+ return result
3287
+ } catch (e) {
3288
+ }
3289
+ }
3290
+
3291
+ async getAccountEmail() {
3292
+ if (!RemoteSteamUser.__appIndex) {
3293
+ RemoteSteamUser.__appIndex = 0
3294
+ }
3295
+ RemoteSteamUser.__appIndex++
3296
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3297
+ RemoteSteamUser.__appIndex = 0
3298
+ }
3299
+
3300
+ const __params = [];
3301
+ if (__params.length === 1 && __params[0] === undefined) {
3302
+ __params.length = 0
3303
+ }
3304
+
3305
+ try {
3306
+ const result = (
3307
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3308
+ method: "getAccountEmail",
3309
+ params: __params,
3310
+ cookies: this._cookies,
3311
+ })
3312
+ ).data?.result;
3313
+ return result
3314
+ } catch (e) {
3315
+ }
3316
+ }
3317
+
3318
+ async getInventory(appID) {
3319
+ if (!RemoteSteamUser.__appIndex) {
3320
+ RemoteSteamUser.__appIndex = 0
3321
+ }
3322
+ RemoteSteamUser.__appIndex++
3323
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3324
+ RemoteSteamUser.__appIndex = 0
3325
+ }
3326
+
3327
+ const __params = [appID];
3328
+ if (__params.length === 1 && __params[0] === undefined) {
3329
+ __params.length = 0
3330
+ }
3331
+
3332
+ try {
3333
+ const result = (
3334
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3335
+ method: "getInventory",
3336
+ params: __params,
3337
+ cookies: this._cookies,
3338
+ })
3339
+ ).data?.result;
3340
+ return result
3341
+ } catch (e) {
3342
+ }
3343
+ }
3344
+
3345
+ async getInventoryTrading(appID, contextid) {
3346
+ if (!RemoteSteamUser.__appIndex) {
3347
+ RemoteSteamUser.__appIndex = 0
3348
+ }
3349
+ RemoteSteamUser.__appIndex++
3350
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3351
+ RemoteSteamUser.__appIndex = 0
3352
+ }
3353
+
3354
+ const __params = [appID, contextid];
3355
+ if (__params.length === 1 && __params[0] === undefined) {
3356
+ __params.length = 0
3357
+ }
3358
+
3359
+ try {
3360
+ const result = (
3361
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3362
+ method: "getInventoryTrading",
3363
+ params: __params,
3364
+ cookies: this._cookies,
3365
+ })
3366
+ ).data?.result;
3367
+ return result
3368
+ } catch (e) {
3369
+ }
3370
+ }
3371
+
3372
+ async getInventoryTradingPartner(appID, partner, contextid) {
3373
+ if (!RemoteSteamUser.__appIndex) {
3374
+ RemoteSteamUser.__appIndex = 0
3375
+ }
3376
+ RemoteSteamUser.__appIndex++
3377
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3378
+ RemoteSteamUser.__appIndex = 0
3379
+ }
3380
+
3381
+ const __params = [appID, partner, contextid];
3382
+ if (__params.length === 1 && __params[0] === undefined) {
3383
+ __params.length = 0
3384
+ }
3385
+
3386
+ try {
3387
+ const result = (
3388
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3389
+ method: "getInventoryTradingPartner",
3390
+ params: __params,
3391
+ cookies: this._cookies,
3392
+ })
3393
+ ).data?.result;
3394
+ return result
3395
+ } catch (e) {
3396
+ }
3397
+ }
3398
+
3399
+ async getFullInventoryHistory() {
3400
+ if (!RemoteSteamUser.__appIndex) {
3401
+ RemoteSteamUser.__appIndex = 0
3402
+ }
3403
+ RemoteSteamUser.__appIndex++
3404
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3405
+ RemoteSteamUser.__appIndex = 0
3406
+ }
3407
+
3408
+ const __params = [];
3409
+ if (__params.length === 1 && __params[0] === undefined) {
3410
+ __params.length = 0
3411
+ }
3412
+
3413
+ try {
3414
+ const result = (
3415
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3416
+ method: "getFullInventoryHistory",
3417
+ params: __params,
3418
+ cookies: this._cookies,
3419
+ })
3420
+ ).data?.result;
3421
+ return result
3422
+ } catch (e) {
3423
+ }
3424
+ }
3425
+
3426
+ async getInventoryHistory(cursor) {
3427
+ if (!RemoteSteamUser.__appIndex) {
3428
+ RemoteSteamUser.__appIndex = 0
3429
+ }
3430
+ RemoteSteamUser.__appIndex++
3431
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3432
+ RemoteSteamUser.__appIndex = 0
3433
+ }
3434
+
3435
+ const __params = [cursor];
3436
+ if (__params.length === 1 && __params[0] === undefined) {
3437
+ __params.length = 0
3438
+ }
3439
+
3440
+ try {
3441
+ const result = (
3442
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3443
+ method: "getInventoryHistory",
3444
+ params: __params,
3445
+ cookies: this._cookies,
3446
+ })
3447
+ ).data?.result;
3448
+ return result
3449
+ } catch (e) {
3450
+ }
3451
+ }
3452
+
3453
+ async getTradeURL() {
3454
+ if (!RemoteSteamUser.__appIndex) {
3455
+ RemoteSteamUser.__appIndex = 0
3456
+ }
3457
+ RemoteSteamUser.__appIndex++
3458
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3459
+ RemoteSteamUser.__appIndex = 0
3460
+ }
3461
+
3462
+ const __params = [];
3463
+ if (__params.length === 1 && __params[0] === undefined) {
3464
+ __params.length = 0
3465
+ }
3466
+
3467
+ try {
3468
+ const result = (
3469
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3470
+ method: "getTradeURL",
3471
+ params: __params,
3472
+ cookies: this._cookies,
3473
+ })
3474
+ ).data?.result;
3475
+ return result
3476
+ } catch (e) {
3477
+ }
3478
+ }
3479
+
3480
+ async sendTradeOffer({tradeURL, myAssets, theirAssets, tradeoffermessage}) {
3481
+ if (!RemoteSteamUser.__appIndex) {
3482
+ RemoteSteamUser.__appIndex = 0
3483
+ }
3484
+ RemoteSteamUser.__appIndex++
3485
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3486
+ RemoteSteamUser.__appIndex = 0
3487
+ }
3488
+
3489
+ const __params = [{tradeURL, myAssets, theirAssets, tradeoffermessage}];
3490
+ if (__params.length === 1 && __params[0] === undefined) {
3491
+ __params.length = 0
3492
+ }
3493
+
3494
+ try {
3495
+ const result = (
3496
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3497
+ method: "sendTradeOffer",
3498
+ params: __params,
3499
+ cookies: this._cookies,
3500
+ })
3501
+ ).data?.result;
3502
+ return result
3503
+ } catch (e) {
3504
+ }
3505
+ }
3506
+
3507
+ async acceptTradeOffer(tradeOfferID, partnerSteamId) {
3508
+ if (!RemoteSteamUser.__appIndex) {
3509
+ RemoteSteamUser.__appIndex = 0
3510
+ }
3511
+ RemoteSteamUser.__appIndex++
3512
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3513
+ RemoteSteamUser.__appIndex = 0
3514
+ }
3515
+
3516
+ const __params = [tradeOfferID, partnerSteamId];
3517
+ if (__params.length === 1 && __params[0] === undefined) {
3518
+ __params.length = 0
3519
+ }
3520
+
3521
+ try {
3522
+ const result = (
3523
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3524
+ method: "acceptTradeOffer",
3525
+ params: __params,
3526
+ cookies: this._cookies,
3527
+ })
3528
+ ).data?.result;
3529
+ return result
3530
+ } catch (e) {
3531
+ }
3532
+ }
3533
+
3534
+ async declineTradeOffer(tradeOfferID, partnerSteamId) {
3535
+ if (!RemoteSteamUser.__appIndex) {
3536
+ RemoteSteamUser.__appIndex = 0
3537
+ }
3538
+ RemoteSteamUser.__appIndex++
3539
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3540
+ RemoteSteamUser.__appIndex = 0
3541
+ }
3542
+
3543
+ const __params = [tradeOfferID, partnerSteamId];
3544
+ if (__params.length === 1 && __params[0] === undefined) {
3545
+ __params.length = 0
3546
+ }
3547
+
3548
+ try {
3549
+ const result = (
3550
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3551
+ method: "declineTradeOffer",
3552
+ params: __params,
3553
+ cookies: this._cookies,
3554
+ })
3555
+ ).data?.result;
3556
+ return result
3557
+ } catch (e) {
3558
+ }
3559
+ }
3560
+
3561
+ async getTradeOffer() {
3562
+ if (!RemoteSteamUser.__appIndex) {
3563
+ RemoteSteamUser.__appIndex = 0
3564
+ }
3565
+ RemoteSteamUser.__appIndex++
3566
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3567
+ RemoteSteamUser.__appIndex = 0
3568
+ }
3569
+
3570
+ const __params = [];
3571
+ if (__params.length === 1 && __params[0] === undefined) {
3572
+ __params.length = 0
3573
+ }
3574
+
3575
+ try {
3576
+ const result = (
3577
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3578
+ method: "getTradeOffer",
3579
+ params: __params,
3580
+ cookies: this._cookies,
3581
+ })
3582
+ ).data?.result;
3583
+ return result
3584
+ } catch (e) {
3585
+ }
3586
+ }
3587
+
3588
+ async uploadAvatar(filePath) {
3589
+ if (!RemoteSteamUser.__appIndex) {
3590
+ RemoteSteamUser.__appIndex = 0
3591
+ }
3592
+ RemoteSteamUser.__appIndex++
3593
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3594
+ RemoteSteamUser.__appIndex = 0
3595
+ }
3596
+
3597
+ const __params = [filePath];
3598
+ if (__params.length === 1 && __params[0] === undefined) {
3599
+ __params.length = 0
3600
+ }
3601
+
3602
+ try {
3603
+ const result = (
3604
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3605
+ method: "uploadAvatar",
3606
+ params: __params,
3607
+ cookies: this._cookies,
3608
+ })
3609
+ ).data?.result;
3610
+ return result
3611
+ } catch (e) {
3612
+ }
3613
+ }
3614
+
3615
+ async selectPreviousAvatar(avatarHash) {
3616
+ if (!RemoteSteamUser.__appIndex) {
3617
+ RemoteSteamUser.__appIndex = 0
3618
+ }
3619
+ RemoteSteamUser.__appIndex++
3620
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3621
+ RemoteSteamUser.__appIndex = 0
3622
+ }
3623
+
3624
+ const __params = [avatarHash];
3625
+ if (__params.length === 1 && __params[0] === undefined) {
3626
+ __params.length = 0
3627
+ }
3628
+
3629
+ try {
3630
+ const result = (
3631
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3632
+ method: "selectPreviousAvatar",
3633
+ params: __params,
3634
+ cookies: this._cookies,
3635
+ })
3636
+ ).data?.result;
3637
+ return result
3638
+ } catch (e) {
3639
+ }
3640
+ }
3641
+
3642
+ async getMiniprofile(steamId) {
3643
+ if (!RemoteSteamUser.__appIndex) {
3644
+ RemoteSteamUser.__appIndex = 0
3645
+ }
3646
+ RemoteSteamUser.__appIndex++
3647
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3648
+ RemoteSteamUser.__appIndex = 0
3649
+ }
3650
+
3651
+ const __params = [steamId];
3652
+ if (__params.length === 1 && __params[0] === undefined) {
3653
+ __params.length = 0
3654
+ }
3655
+
3656
+ try {
3657
+ const result = (
3658
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3659
+ method: "getMiniprofile",
3660
+ params: __params,
3661
+ cookies: this._cookies,
3662
+ })
3663
+ ).data?.result;
3664
+ return result
3665
+ } catch (e) {
3666
+ }
3667
+ }
3668
+
3669
+ async deauthorizeAllDevices() {
3670
+ if (!RemoteSteamUser.__appIndex) {
3671
+ RemoteSteamUser.__appIndex = 0
3672
+ }
3673
+ RemoteSteamUser.__appIndex++
3674
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3675
+ RemoteSteamUser.__appIndex = 0
3676
+ }
3677
+
3678
+ const __params = [];
3679
+ if (__params.length === 1 && __params[0] === undefined) {
3680
+ __params.length = 0
3681
+ }
3682
+
3683
+ try {
3684
+ const result = (
3685
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3686
+ method: "deauthorizeAllDevices",
3687
+ params: __params,
3688
+ cookies: this._cookies,
3689
+ })
3690
+ ).data?.result;
3691
+ return result
3692
+ } catch (e) {
3693
+ }
3694
+ }
3695
+
3696
+ async getMarketUnavailable() {
3697
+ if (!RemoteSteamUser.__appIndex) {
3698
+ RemoteSteamUser.__appIndex = 0
3699
+ }
3700
+ RemoteSteamUser.__appIndex++
3701
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3702
+ RemoteSteamUser.__appIndex = 0
3703
+ }
3704
+
3705
+ const __params = [];
3706
+ if (__params.length === 1 && __params[0] === undefined) {
3707
+ __params.length = 0
3708
+ }
3709
+
3710
+ try {
3711
+ const result = (
3712
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3713
+ method: "getMarketUnavailable",
3714
+ params: __params,
3715
+ cookies: this._cookies,
3716
+ })
3717
+ ).data?.result;
3718
+ return result
3719
+ } catch (e) {
3720
+ }
3721
+ }
3722
+
3723
+ async getAmountSpentOnSteam() {
3724
+ if (!RemoteSteamUser.__appIndex) {
3725
+ RemoteSteamUser.__appIndex = 0
3726
+ }
3727
+ RemoteSteamUser.__appIndex++
3728
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3729
+ RemoteSteamUser.__appIndex = 0
3730
+ }
3731
+
3732
+ const __params = [];
3733
+ if (__params.length === 1 && __params[0] === undefined) {
3734
+ __params.length = 0
3735
+ }
3736
+
3737
+ try {
3738
+ const result = (
3739
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3740
+ method: "getAmountSpentOnSteam",
3741
+ params: __params,
3742
+ cookies: this._cookies,
3743
+ })
3744
+ ).data?.result;
3745
+ return result
3746
+ } catch (e) {
3747
+ }
3748
+ }
3749
+
3750
+ async sellItem({
3751
+ appid, contextid,
3752
+ assetid, amount,
3753
+ price
3754
+ }) {
3755
+ if (!RemoteSteamUser.__appIndex) {
3756
+ RemoteSteamUser.__appIndex = 0
3757
+ }
3758
+ RemoteSteamUser.__appIndex++
3759
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3760
+ RemoteSteamUser.__appIndex = 0
3761
+ }
3762
+
3763
+ const __params = [{
3764
+ appid, contextid,
3765
+ assetid, amount,
3766
+ price
3767
+ }];
3768
+ if (__params.length === 1 && __params[0] === undefined) {
3769
+ __params.length = 0
3770
+ }
3771
+
3772
+ try {
3773
+ const result = (
3774
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3775
+ method: "sellItem",
3776
+ params: __params,
3777
+ cookies: this._cookies,
3778
+ })
3779
+ ).data?.result;
3780
+ return result
3781
+ } catch (e) {
3782
+ }
3783
+ }
3784
+
3785
+ async removeListing(id) {
3786
+ if (!RemoteSteamUser.__appIndex) {
3787
+ RemoteSteamUser.__appIndex = 0
3788
+ }
3789
+ RemoteSteamUser.__appIndex++
3790
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3791
+ RemoteSteamUser.__appIndex = 0
3792
+ }
3793
+
3794
+ const __params = [id];
3795
+ if (__params.length === 1 && __params[0] === undefined) {
3796
+ __params.length = 0
3797
+ }
3798
+
3799
+ try {
3800
+ const result = (
3801
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3802
+ method: "removeListing",
3803
+ params: __params,
3804
+ cookies: this._cookies,
3805
+ })
3806
+ ).data?.result;
3807
+ return result
3808
+ } catch (e) {
3809
+ }
3810
+ }
3811
+
3812
+ async getMyListings() {
3813
+ if (!RemoteSteamUser.__appIndex) {
3814
+ RemoteSteamUser.__appIndex = 0
3815
+ }
3816
+ RemoteSteamUser.__appIndex++
3817
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3818
+ RemoteSteamUser.__appIndex = 0
3819
+ }
3820
+
3821
+ const __params = [];
3822
+ if (__params.length === 1 && __params[0] === undefined) {
3823
+ __params.length = 0
3824
+ }
3825
+
3826
+ try {
3827
+ const result = (
3828
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3829
+ method: "getMyListings",
3830
+ params: __params,
3831
+ cookies: this._cookies,
3832
+ })
3833
+ ).data?.result;
3834
+ return result
3835
+ } catch (e) {
3836
+ }
3837
+ }
3838
+
3839
+ async getPlayerReports(token) {
3840
+ if (!RemoteSteamUser.__appIndex) {
3841
+ RemoteSteamUser.__appIndex = 0
3842
+ }
3843
+ RemoteSteamUser.__appIndex++
3844
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3845
+ RemoteSteamUser.__appIndex = 0
3846
+ }
3847
+
3848
+ const __params = [token];
3849
+ if (__params.length === 1 && __params[0] === undefined) {
3850
+ __params.length = 0
3851
+ }
3852
+
3853
+ try {
3854
+ const result = (
3855
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3856
+ method: "getPlayerReports",
3857
+ params: __params,
3858
+ cookies: this._cookies,
3859
+ })
3860
+ ).data?.result;
3861
+ return result
3862
+ } catch (e) {
3863
+ }
3864
+ }
3865
+
3866
+ async getAllPlayerReports(onPageCb) {
3867
+ if (!RemoteSteamUser.__appIndex) {
3868
+ RemoteSteamUser.__appIndex = 0
3869
+ }
3870
+ RemoteSteamUser.__appIndex++
3871
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3872
+ RemoteSteamUser.__appIndex = 0
3873
+ }
3874
+
3875
+ const __params = [onPageCb];
3876
+ if (__params.length === 1 && __params[0] === undefined) {
3877
+ __params.length = 0
3878
+ }
3879
+
3880
+ try {
3881
+ const result = (
3882
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3883
+ method: "getAllPlayerReports",
3884
+ params: __params,
3885
+ cookies: this._cookies,
3886
+ })
3887
+ ).data?.result;
3888
+ return result
3889
+ } catch (e) {
3890
+ }
3891
+ }
3892
+
3893
+ async beginFileUpload(filePath) {
3894
+ if (!RemoteSteamUser.__appIndex) {
3895
+ RemoteSteamUser.__appIndex = 0
3896
+ }
3897
+ RemoteSteamUser.__appIndex++
3898
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3899
+ RemoteSteamUser.__appIndex = 0
3900
+ }
3901
+
3902
+ const __params = [filePath];
3903
+ if (__params.length === 1 && __params[0] === undefined) {
3904
+ __params.length = 0
3905
+ }
3906
+
3907
+ try {
3908
+ const result = (
3909
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3910
+ method: "beginFileUpload",
3911
+ params: __params,
3912
+ cookies: this._cookies,
3913
+ })
3914
+ ).data?.result;
3915
+ return result
3916
+ } catch (e) {
3917
+ }
3918
+ }
3919
+
3920
+ async doFileUpload({
3921
+ filePath,
3922
+ beginFileUploadResult,
3923
+ }) {
3924
+ if (!RemoteSteamUser.__appIndex) {
3925
+ RemoteSteamUser.__appIndex = 0
3926
+ }
3927
+ RemoteSteamUser.__appIndex++
3928
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3929
+ RemoteSteamUser.__appIndex = 0
3930
+ }
3931
+
3932
+ const __params = [{
3933
+ filePath,
3934
+ beginFileUploadResult,
3935
+ }];
3936
+ if (__params.length === 1 && __params[0] === undefined) {
3937
+ __params.length = 0
3938
+ }
3939
+
3940
+ try {
3941
+ const result = (
3942
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3943
+ method: "doFileUpload",
3944
+ params: __params,
3945
+ cookies: this._cookies,
3946
+ })
3947
+ ).data?.result;
3948
+ return result
3949
+ } catch (e) {
3950
+ }
3951
+ }
3952
+
3953
+ async commitFileUpload({
3954
+ file_name,
3955
+ file_sha,
3956
+ file_image_width,
3957
+ file_image_height,
3958
+ file_type,
3959
+ hmac,
3960
+ timestamp,
3961
+ ugcid,
3962
+ friend_steamid,
3963
+ }) {
3964
+ if (!RemoteSteamUser.__appIndex) {
3965
+ RemoteSteamUser.__appIndex = 0
3966
+ }
3967
+ RemoteSteamUser.__appIndex++
3968
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
3969
+ RemoteSteamUser.__appIndex = 0
3970
+ }
3971
+
3972
+ const __params = [{
3973
+ file_name,
3974
+ file_sha,
3975
+ file_image_width,
3976
+ file_image_height,
3977
+ file_type,
3978
+ hmac,
3979
+ timestamp,
3980
+ ugcid,
3981
+ friend_steamid,
3982
+ }];
3983
+ if (__params.length === 1 && __params[0] === undefined) {
3984
+ __params.length = 0
3985
+ }
3986
+
3987
+ try {
3988
+ const result = (
3989
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
3990
+ method: "commitFileUpload",
3991
+ params: __params,
3992
+ cookies: this._cookies,
3993
+ })
3994
+ ).data?.result;
3995
+ return result
3996
+ } catch (e) {
3997
+ }
3998
+ }
3999
+
4000
+ async sendImageMessage({
4001
+ imagePath,
4002
+ friend_steamid,
4003
+ }) {
4004
+ if (!RemoteSteamUser.__appIndex) {
4005
+ RemoteSteamUser.__appIndex = 0
4006
+ }
4007
+ RemoteSteamUser.__appIndex++
4008
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
4009
+ RemoteSteamUser.__appIndex = 0
4010
+ }
4011
+
4012
+ const __params = [{
4013
+ imagePath,
4014
+ friend_steamid,
4015
+ }];
4016
+ if (__params.length === 1 && __params[0] === undefined) {
4017
+ __params.length = 0
4018
+ }
4019
+
4020
+ try {
4021
+ const result = (
4022
+ await axios.post(RemoteSteamUser.__apps[RemoteSteamUser.__appIndex], {
4023
+ method: "sendImageMessage",
4024
+ params: __params,
4025
+ cookies: this._cookies,
4026
+ })
4027
+ ).data?.result;
4028
+ return result
4029
+ } catch (e) {
4030
+ }
4031
+ }
4032
+
4033
+
4034
+ }
4035
+
4036
+