-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathapi.js
1803 lines (1780 loc) · 38.9 KB
/
api.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* The Types are automatically generated with Rests
*/
import Rests from "rests";
import {
jsCodeSample,
pyCodeSample,
iterationCodeSamples,
hashtagCodeSamples,
exploreCodeSamples
} from "./code_samples.js";
/**
* Frequently Used Parameters Schemas
*/
const p = {
username: {
help: "The TikTok user username",
validate: "^([a-zA-Z0-9_\.]+|https?:\/\/vm.tiktok.com\/[a-zA-Z0-9]+\/?)$",
type: "string"
},
secUid: {
validate: "^(.*?){30,}$",
help: "The TikTok user secUid. You can get this from the <a href='#tag/Public/operation/public.check'>Get profile information</a> endpoint using the username.",
type: "string",
example: "MS4wLjABAAAAsHntXC3s0AvxcecggxsoVa4eAiT8OVafVZ4OQXxy-9htpnUi0sOYSr0kGGD1Loud"
},
user_id:{
help: "The TikTok user ID",
type: "string",
validate: "^[0-9]+$",
},
cursor: {
help: "The starting point of the items list. Returned in every response, should be included in the next request for iteration.<br><br> *(A simple iteration method is already implemented in the Javascript & Python libraries as seen in the request samples)*",
type: "string",
validate: "^[0-9]+$"
},
offset: {
help: "The starting offset of items list. Returned in every response, should be included in the next request for iteration.<br><br> *(A simple iteration method is already implemented in the Javascript & Python libraries as seen in the request samples)*",
type: "number",
validate: "^[0-9]+$"
},
count: {
example: 30,
default: 30,
max: 30,
type: "number",
help: "Maximum amount of items for one request",
validate: "^[0-9]{1,2}$"
},
musicId:{
validate: "^([0-9]+|https?:\/\/vm.tiktok.com\/[a-zA-Z0-9]+\/?)$",
type: "string",
help: "The music ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)"
},
hashtagId:{
validate: "^([0-9]+|https?:\/\/vm.tiktok.com\/[a-zA-Z0-9]+\/?)$",
type: "string",
help: "The hashtag ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)"
},
videoId:{
help: "The video ID. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)",
type: "string",
validate: "^([0-9]+|https?:\/\/vm.tiktok.com\/[a-zA-Z0-9]+\/?)$"
},
commentId:{
validate: "^[0-9]+$",
help: "The comment ID",
type: "string",
},
roomId:{
help: "The Live room ID. You can find this using the <a href='#tag/Public/operation/public.check'>Get profile information</a> endpoint.",
type: "string",
example: "7112492061034646278"
},
nextCursor: {
type: "string",
help: "A iteration parameter returned in each response, should be included in the next requests to get the next items."
}
};
const exampleSecUid = 'MS4wLjABAAAAsHntXC3s0AvxcecggxsoVa4eAiT8OVafVZ4OQXxy-9htpnUi0sOYSr0kGGD1Loud';
const exampleUid = '6569595380449902597';
const exampleVideoId = '7109178205151464746';
const exampleVideoIdMoreParameters = '7003402629929913605';
const exampleCommentId = '7109185042560680750';
const premiumBadge = `**Premium**<img title='Only Business and Enterprise subscriptions can access this
endpoint' style='margin-bottom: -3px;cursor: help;'
src='/assets/img/star.png' width='18px'><br/>
`;
const specialBadge = `*This endpoint is only available to trusted customers.
<a target="_blank" href='https://helpdesk.tikapi.io/portal/en/kb/articles/how-can-i-get-access-to-special-endpoints'> Learn more about special endpoints</a>*
`;
const videoLink = `<a target="_blank" href='https://helpdesk.tikapi.io/portal/en/kb/articles/how-to-download-tiktok-videos'>
Learn more about downloading videos</a>
`;
const userSecurity = (scopes=[])=>([{
"apiKey": [],
"accountKey": scopes
}]);
/**
* API Schema
*/
const API = Rests({
$options:{
base: "https://api.tikapi.io",
sandboxBase: "http://sandbox.tikapi.io",
params:{
apiKey: {
name: "X-API-KEY",
required: true,
location: "headers",
validate: "^[a-zA-Z0-9]{10,}$",
example: "DemoAPIKeyTokenSeHYGXDfd4SFD320Sc39Asd0Sc39Asd4s",
help: "The TikAPI API Key is required for all requests",
$initsOnly: true
},
},
$other: {
openapi:{
packageName: 'tikapi',
jsTemplate: jsCodeSample,
pyTemplate: pyCodeSample,
fields:{
security: [
{
"apiKey": [],
}
],
responses:{
"403": {
"$ref": "./error_responses/403.yaml"
},
}
}
}
}
},
public: {
help: "Public endpoints do not require an authenticated user.",
$options: {
params:{
country: {
type: "string",
validate: "^[a-z]{2}$",
help: `You can optionally choose the proxy country from where the request
is being sent by providing an ISO Code (e.g us, ca, gb) — 200+ countries supported`,
location: "query",
example: "us"
},
session_id:{
type: "number",
max: 100,
example: 0,
help: "(Optional) Longer sessions. The cookies and IP are preserved through different requests for a longer amount of time. You should include this in order to get different posts on every request."
}
},
$other:{
openapi: {
fields:{
tags: [
"Public"
]
},
}
}
},
check: {
path: "/public/check",
help: "Get a user's profile information",
comment: "Get profile information and statistics from a username.",
params: {
username: {
...p.username,
example: 'lilyachty',
},
user_id: {
...p.user_id,
help: "Optionally you can get the profile information using the user_id parameter."
}
},
$other:{
openapi:{
hideParams: ['user_id', 'session_id'],
showExamplesInCode: ['username']
}
}
},
posts: {
help: "Get a user's feed posts",
path: "/public/posts",
comment: videoLink,
params: {
secUid: {
...p.secUid,
required: true,
example: exampleSecUid
},
count: p.count,
cursor: p.cursor,
user_id: p.user_id
},
$other:{
openapi: {
...iterationCodeSamples('cursor'),
hideParams: ['session_id', 'user_id']
}
}
},
likes: {
help: "Get a user's liked posts",
path: "/public/likes",
comment: videoLink,
params: {
secUid: {
...p.secUid,
required: true,
example: exampleSecUid
},
count: p.count,
cursor: p.cursor
},
$other:{
openapi: {
...iterationCodeSamples('cursor'),
hideParams: ['session_id']
}
}
},
followersList:{
help: "Get a user's followers list",
comment: "Get followers list of any public profile.",
path: "/public/followers",
params: {
secUid: {
...p.secUid,
required: true,
example: exampleSecUid
},
count: p.count,
nextCursor: {
...p.nextCursor,
type: "number"
}
},
$other:{
openapi: {
...iterationCodeSamples('nextCursor'),
hideParams: ['session_id']
}
}
},
followingList:{
help: "Get a user's following list",
comment: "Get following list of any public profile.",
path: "/public/following",
params: {
secUid: {
...p.secUid,
required: true,
example: exampleSecUid
},
count: p.count,
nextCursor: {
...p.nextCursor,
type: "number"
}
},
$other:{
openapi: {
...iterationCodeSamples('nextCursor'),
hideParams: ['session_id']
}
}
},
explore: {
help: "Get trending posts",
comment: "Get a list of recommended posts from the *For You* section. <br/>" + videoLink,
path: "/public/explore",
params: {
count: p.count,
},
$other:{
openapi: {
...exploreCodeSamples(),
hideParams: ['session_id']
}
}
},
video: {
path: "/public/video",
help: "Get video information",
comment: videoLink,
params: {
id: {
...p.videoId,
required: true,
example: exampleVideoIdMoreParameters
}
},
$other:{
openapi: {
hideParams: ['session_id']
}
}
},
videoV2: {
path: "/public/video/v2",
help: "Get video information (alternative endpoint)",
comment: videoLink,
params: {
id: {
...p.videoId,
required: true,
example: exampleVideoId
}
},
$other:{
openapi: {
hide: true,
hideParams: ['session_id']
}
}
},
videoV3: {
path: "/public/video/v3",
help: "Get video information (alternative endpoint)",
comment: videoLink,
params: {
id: {
...p.videoId,
required: true,
example: exampleVideoId
},
username: {
...p.username,
required: true,
help: "The username of the video author."
}
},
$other:{
openapi: {
hide: true,
hideParams: ['session_id']
}
}
},
relatedPosts: {
path: "/public/related_posts",
help: "Get related posts",
comment: videoLink,
params: {
video_id: {
...p.videoId,
help: "The video ID from which to get related posts. Can also be a short TikTok link (e.g. vm.tiktok.com/UwU)",
required: true,
example: exampleVideoId
}
},
$other:{
openapi: {
hideParams: ['session_id'],
fields: {
'x-new': true
}
}
}
},
playlists: {
path: "/public/playlists",
help: "Get a user's playlists",
params: {
secUid: {
...p.secUid,
required: true,
example: exampleSecUid
},
count: p.count,
cursor: p.cursor,
},
$other:{
openapi: {
...iterationCodeSamples('cursor'),
hideParams: ['session_id'],
fields: {
'x-new': true
}
}
}
},
playlistItems: {
path: "/public/playlist/items",
help: "Get a playlist items",
params: {
playlist_id: {
validate: "^[0-9]+$",
required: true,
example: "6948562344666532614",
help: "The playlist ID."
},
count: p.count,
cursor: p.cursor,
},
$other:{
openapi: {
...iterationCodeSamples('cursor'),
hideParams: ['session_id'],
fields: {
'x-new': true
}
}
}
},
exploreCategory: {
path: "/public/explore/category",
help: "Get explore posts by category",
comment: `The following categories are supported:<br/><br/>
"Comedy & Drama": 1,<br/>
"Dance & Music": 2,<br/>
"Relationships": 3,<br/>
"Nature & Pets": 4,<br/>
"Lifestyle": 5,<br/>
"Society": 6,<br/>
"Fashion": 7,<br/>
"Entertainment": 8,<br/>
"Informative": 10,<br/>
"Sports & Outdoors": 11,<br/>
"Auto & Vehicle": 12,`,
params: {
category_id: {
validate: "^[0-9]+$",
required: true,
example: "1",
help: "The category ID."
},
count: p.count,
},
$other:{
openapi: {
...iterationCodeSamples('cursor'),
hide: true,
fields: {
'x-new': true,
'x-beta': true,
}
}
}
},
hashtag: {
help: "Get hashtag posts",
comment: "Your first request should be using the hashtag `name` parameter, then the following requests should be using the `id` parameter which you have stored from the first request (returned in response `challengeInfo > challenge > id`). <br/>" + videoLink,
path: "/public/hashtag",
params: {
id: {
...p.hashtagId,
example: '4655293',
},
name: {
type: "string",
help: "The hashtag name",
},
count: p.count,
cursor: p.cursor,
},
$other:{
openapi: {
...hashtagCodeSamples('cursor'),
hideParams: ['session_id']
}
}
},
commentsList: {
help: "Get a video comments list",
path: "/public/comment/list",
params: {
media_id: {
...p.videoId,
required: true,
example: exampleVideoId
},
count: p.count,
cursor: {
...p.cursor,
type: "number"
},
},
$other:{
openapi:{
...iterationCodeSamples('cursor')
}
}
},
commentRepliesList: {
help: "Get a comment replies list",
path: "/public/comment/reply/list",
params: {
media_id: {
...p.videoId,
required: true,
example: exampleVideoId
},
comment_id: {
...p.commentId,
required: true,
example: exampleCommentId
},
count: p.count,
cursor: {
...p.cursor,
type: "number"
}
},
$other:{
openapi:{
...iterationCodeSamples('cursor')
}
}
},
music: {
help: "Get music posts",
comment: "Get a list of posts that are using this music. <br/>" + videoLink,
path: "/public/music",
params: {
id: {
...p.musicId,
required: true,
example: "28459463"
},
count: p.count,
cursor: p.cursor,
},
$other:{
openapi: {
...iterationCodeSamples('cursor'),
hideParams: ['session_id']
}
}
},
musicInfo: {
help: "Get music information",
path: "/public/music/info",
params: {
id: {
...p.musicId,
required: true,
example: "28459463"
}
},
$other:{
openapi: {
hideParams: ['session_id']
}
}
},
discover: {
help: "Discover users, music, hashtags",
comment: `Get popular users, music or hashtag. You can also include *Account Key* to show personalized results for the user.`,
path: "/public/discover/{category}",
params: {
category: {
help: "The discover category",
example: "users",
in: ["users", "music", "hashtag"],
location: "path",
type: "string",
required: true
},
count: p.count,
offset: p.offset,
},
$other:{
openapi:{
...iterationCodeSamples('offset'),
hideParams: ['session_id']
}
}
},
discoverKeyword:{
help: "Discover by keyword",
comment: "Get popular posts, users, music or hashtags from a keyword. <br><br>Limited to only a few items. If you want more, try using the <a href='#tag/Public/operation/public.search'>Search</a> endpoint instead.",
path: "/public/discover/keyword",
params:{
keyword: {
required: true,
example: "lilyachty",
type: "string"
},
},
$other:{
openapi:{
hideParams: ['session_id']
}
}
},
search:{
help: "Search",
comment: "Search anything, users, videos, or get keyword autocomplete suggestions. <br/>" + videoLink,
path: '/public/search/{category}',
params: {
category: {
help: "The search category",
in: ["general", "users", "videos", "autocomplete"],
required: true,
type: "string",
example: "general",
location: "path"
},
query:{
type: 'string',
example: "lilyachty",
required: true,
help: 'The search keyword'
},
nextCursor: p.nextCursor,
session_id:{
type: "number",
max: 100,
example: 0,
help: "The cookies and IP are preserved through different requests for a longer amount of time. You should use this if you want to keep the search suggestions the same."
}
},
$other:{
openapi:{
...iterationCodeSamples('nextCursor'),
hideParams: ['session_id']
}
}
}
},
user: {
help: 'The user endpoints require an `accountKey`',
$options: {
params: {
accountKey: {
name: "X-ACCOUNT-KEY",
required: true,
help: "The Account Key is required",
location: "headers",
validate: "^[a-zA-Z0-9]{10,}$",
example: 'DemoAccountKeyTokenSeHYGXDfd4SFD320Sc39Asd0Sc39A',
$initsOnly: true
}
}
},
info: {
help: "Get profile information",
comment: "Get current user profile information, or another user's by specifying the username.",
path: "/user/info",
params: {
username: p.username
},
$other:{
openapi: {
fields:{
security: userSecurity(['view_profile']),
tags: [
"Profile"
],
},
}
}
},
edit: {
help: "Edit profile",
comment: premiumBadge + "Update the current user profile fields.",
path: "/user/edit/{field}",
method: "POST",
params: {
field:{
required: true,
help: "The profile field.",
in: ["nickname", "username", "bio", "private"],
example: "bio",
location: "path",
type: "string"
},
value:{
required: true,
type: "string",
example: "My new bio",
help: "The new field value"
}
},
$other:{
openapi: {
fields:{
security: userSecurity(['edit']),
tags: [
"Profile"
],
},
}
}
},
notifications: {
help: "Get notifications",
comment: "Get current user recent notifications.<br><br>*Note: Some notifications are limited by TikTok.*",
path: "/user/notifications",
params: {
filter: {
default: "all",
help: "Filter notifications by type",
type: "string",
in: [
"all",
"likes",
"comments",
"mentions",
"followers"
],
},
count: p.count,
max_time: {
name: 'max_time',
help: "Returned in every response, should be included in the next request for iteration.",
validate: "^[0-9]+$"
},
min_time: {
help: "Returned in every response, should be included in the next request for iteration.",
name: 'min_time',
validate: "^[0-9]+$"
}
},
$other:{
openapi: {
...iterationCodeSamples('min_time'),
fields:{
security: userSecurity(['view_notifications']),
tags: [
"Profile"
],
},
}
}
},
analytics: {
help: "Get analytics",
comment: "Get analytics for business or creator accounts",
path: "/creator/analytics/{type}",
params:{
type:{
required: true,
in: ['overview', 'content', 'video', 'followers', 'live'],
type: "string",
help: "The analytics type",
example: "overview",
location: "path"
},
days:{
default: 7,
help: "The days time frame for the analytics data",
validate: "^[0-9]+$",
type: "number"
},
media_id: {
help: "Required only for **video** type analytics, otherwise don't include.",
validate: "^[0-9]+$"
}
},
$other:{
openapi: {
fields:{
security: userSecurity(['view_analytics']),
tags: [
"Profile"
],
},
}
}
},
verify:{
help: "Check session",
comment: "Check if the current user's session is valid. Auto-removes the user if it's invalid. <br><br>*Note: The session is automatically checked, though you can still manually call this endpoint if you are having issues with a user.*",
path: "/user/session/check",
$other:{
openapi: {
fields:{
security: userSecurity(['view_profile']),
tags: [
"Profile"
],
responses:{
"428": {
"$ref": "./error_responses/428.yaml"
},
}
},
}
}
},
followingV1: {
help: "Get following list",
comment: "Get current user's following list",
path: "/user/following/v1",
params: {
count: p.count,
cursor: {
...p.cursor,
type: "number"
}
},
$other:{
openapi: {
hide: true,
fields:{
tags: [
"Followers"
],
security: userSecurity(['view_followers']),
},
}
}
},
following:{
help: "Get following list",
comment: "Get current user following list (or a friends by specifying the secUid).",
path: "/user/following",
params: {
secUid: {
...p.secUid,
example: exampleSecUid
},
count: p.count,
nextCursor: {
...p.nextCursor,
type: "number"
}
},
$other:{
openapi: {
...iterationCodeSamples('nextCursor'),
fields:{
tags: [
"Followers"
],
security: userSecurity(['view_followers']),
},
}
}
},
followers:{
help: "Get followers list",
comment: "Get current user followers list (or a friends by specifying the secUid).",
path: "/user/followers",
params: {
secUid: {
...p.secUid,
example: exampleSecUid
},
count: p.count,
nextCursor: {
...p.nextCursor,
type: "number"
}
},
$other:{
openapi: {
...iterationCodeSamples('nextCursor'),
fields:{
tags: [
"Followers"
],
security: userSecurity(['view_followers']),
},
}
}
},
follow: {
help: "Follow a user",
comment: specialBadge + `<br>This endpoint is deprecated and might not work as excpeted.`,
path: "/user/follow",
method: "POST",
enctype: "json",
params: {
username: {
...p.username,
required: true,
example: 'lilyachty',
},
secUid:{
...p.secUid,
required: true
},
user_id: {
...p.user_id,
required: true,
example: '6569595380449902597'
}
},
$other:{
openapi: {
hide: true,
fields:{
deprecated: true,
tags: [
"Followers"
],
security: userSecurity(['follow_actions']),
},
}
}
},
unfollow: {
help: "Unfollow a user",
comment: specialBadge + `<br>This endpoint is deprecated and might not work as excpeted.`,
path: "/user/unfollow",
method: "POST",
enctype: "json",
params: {
username: {
...p.username,
required: true,
example: 'lilyachty'
},
secUid:{
...p.secUid,
required: true
},
user_id: {
...p.user_id,
required: true,
example: '6569595380449902597'
}
},
$other:{
openapi: {
hide: true,
fields:{
deprecated: true,
tags: [
"Followers"
],
security: userSecurity(['follow_actions']),
},
}
}
},
posts: {
$options:{
$other:{
openapi: {
fields:{
tags: [
"Posts"
],
},
}
}
},
feed: {
help: "Get feed posts",
comment: "Get current user feed posts, or someone elses by providing the `secUid` parameter.",
path: "/user/feed",
params: {
count: p.count,
cursor: p.cursor,
secUid: p.secUid,
user_id: p.user_id
},
$other:{
openapi: {
...iterationCodeSamples('cursor'),
fields:{
security: userSecurity(['explore']),
},
hideParams: ['user_id']
}
}
},
likes: {
help: "Get liked posts",
comment: "Get current user liked posts, or someone elses by providing the `secUid` parameter.",
path: "/user/likes",
params: {
count: p.count,
secUid: p.secUid,
cursor: p.cursor,
},
$other:{
openapi: {
...iterationCodeSamples('cursor'),
fields:{