ensembledata 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/client.js +8 -40
- package/src/version.js +1 -1
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -180,7 +180,6 @@ class TiktokEndpoints {
|
|
|
180
180
|
* depth: number;
|
|
181
181
|
* cursor?: number;
|
|
182
182
|
* oldestCreatetime?: number;
|
|
183
|
-
* alternativeMethod?: boolean;
|
|
184
183
|
* newVersion?: boolean;
|
|
185
184
|
* downloadVideo?: boolean;
|
|
186
185
|
* }} params
|
|
@@ -193,7 +192,6 @@ class TiktokEndpoints {
|
|
|
193
192
|
depth,
|
|
194
193
|
cursor = undefined,
|
|
195
194
|
oldestCreatetime = undefined,
|
|
196
|
-
alternativeMethod = undefined,
|
|
197
195
|
newVersion = undefined,
|
|
198
196
|
downloadVideo = undefined,
|
|
199
197
|
},
|
|
@@ -205,7 +203,6 @@ class TiktokEndpoints {
|
|
|
205
203
|
depth,
|
|
206
204
|
start_cursor: cursor,
|
|
207
205
|
oldest_createtime: oldestCreatetime,
|
|
208
|
-
alternative_method: alternativeMethod,
|
|
209
206
|
new_version: newVersion,
|
|
210
207
|
download_video: downloadVideo,
|
|
211
208
|
});
|
|
@@ -221,7 +218,6 @@ class TiktokEndpoints {
|
|
|
221
218
|
* depth: number;
|
|
222
219
|
* cursor?: number;
|
|
223
220
|
* oldestCreatetime?: number;
|
|
224
|
-
* alternativeMethod?: boolean;
|
|
225
221
|
* newVersion?: boolean;
|
|
226
222
|
* downloadVideo?: boolean;
|
|
227
223
|
* }} params
|
|
@@ -234,7 +230,6 @@ class TiktokEndpoints {
|
|
|
234
230
|
depth,
|
|
235
231
|
cursor = undefined,
|
|
236
232
|
oldestCreatetime = undefined,
|
|
237
|
-
alternativeMethod = undefined,
|
|
238
233
|
newVersion = undefined,
|
|
239
234
|
downloadVideo = undefined,
|
|
240
235
|
},
|
|
@@ -246,7 +241,6 @@ class TiktokEndpoints {
|
|
|
246
241
|
depth,
|
|
247
242
|
start_cursor: cursor,
|
|
248
243
|
oldest_createtime: oldestCreatetime,
|
|
249
|
-
alternative_method: alternativeMethod,
|
|
250
244
|
new_version: newVersion,
|
|
251
245
|
download_video: downloadVideo,
|
|
252
246
|
});
|
|
@@ -272,23 +266,18 @@ class TiktokEndpoints {
|
|
|
272
266
|
}
|
|
273
267
|
|
|
274
268
|
/**
|
|
275
|
-
* @param {{
|
|
276
|
-
* secUid: string;
|
|
277
|
-
* alternativeMethod?: boolean;
|
|
278
|
-
* newVersion?: boolean;
|
|
279
|
-
* }} params
|
|
269
|
+
* @param {{ secUid: string; alternativeMethod?: boolean }} params
|
|
280
270
|
* @param {{ extraParams?: Record<string, any>; timeout?: number }} options
|
|
281
271
|
* @returns {Promise<EDResponse>}
|
|
282
272
|
*/
|
|
283
273
|
userInfoFromSecuid(
|
|
284
|
-
{ secUid, alternativeMethod = undefined
|
|
274
|
+
{ secUid, alternativeMethod = undefined },
|
|
285
275
|
options = {},
|
|
286
276
|
) {
|
|
287
277
|
const params = filterUndefinedValues({
|
|
288
278
|
...options.extraParams,
|
|
289
279
|
secUid,
|
|
290
280
|
alternative_method: alternativeMethod,
|
|
291
|
-
new_version: newVersion,
|
|
292
281
|
});
|
|
293
282
|
return this.#requester.get("/tt/user/info-from-secuid", params, {
|
|
294
283
|
timeout: options.timeout,
|
|
@@ -360,19 +349,15 @@ class TiktokEndpoints {
|
|
|
360
349
|
}
|
|
361
350
|
|
|
362
351
|
/**
|
|
363
|
-
* @param {{ awemeId: string; cursor?: number
|
|
352
|
+
* @param {{ awemeId: string; cursor?: number }} params
|
|
364
353
|
* @param {{ extraParams?: Record<string, any>; timeout?: number }} options
|
|
365
354
|
* @returns {Promise<EDResponse>}
|
|
366
355
|
*/
|
|
367
|
-
postComments(
|
|
368
|
-
{ awemeId, cursor = undefined, newVersion = undefined },
|
|
369
|
-
options = {},
|
|
370
|
-
) {
|
|
356
|
+
postComments({ awemeId, cursor = undefined }, options = {}) {
|
|
371
357
|
const params = filterUndefinedValues({
|
|
372
358
|
...options.extraParams,
|
|
373
359
|
aweme_id: awemeId,
|
|
374
360
|
cursor,
|
|
375
|
-
new_version: newVersion,
|
|
376
361
|
});
|
|
377
362
|
return this.#requester.get("/tt/post/comments", params, {
|
|
378
363
|
timeout: options.timeout,
|
|
@@ -447,15 +432,14 @@ class TiktokEndpoints {
|
|
|
447
432
|
}
|
|
448
433
|
|
|
449
434
|
/**
|
|
450
|
-
* @param {{ musicId: string
|
|
435
|
+
* @param {{ musicId: string }} params
|
|
451
436
|
* @param {{ extraParams?: Record<string, any>; timeout?: number }} options
|
|
452
437
|
* @returns {Promise<EDResponse>}
|
|
453
438
|
*/
|
|
454
|
-
musicDetails({ musicId
|
|
439
|
+
musicDetails({ musicId }, options = {}) {
|
|
455
440
|
const params = filterUndefinedValues({
|
|
456
441
|
...options.extraParams,
|
|
457
442
|
id: musicId,
|
|
458
|
-
new_version: newVersion,
|
|
459
443
|
});
|
|
460
444
|
return this.#requester.get("/tt/music/details", params, {
|
|
461
445
|
timeout: options.timeout,
|
|
@@ -468,19 +452,12 @@ class TiktokEndpoints {
|
|
|
468
452
|
* secUid: string;
|
|
469
453
|
* cursor?: number;
|
|
470
454
|
* pageToken?: string;
|
|
471
|
-
* newVersion?: boolean;
|
|
472
455
|
* }} params
|
|
473
456
|
* @param {{ extraParams?: Record<string, any>; timeout?: number }} options
|
|
474
457
|
* @returns {Promise<EDResponse>}
|
|
475
458
|
*/
|
|
476
459
|
userFollowers(
|
|
477
|
-
{
|
|
478
|
-
id,
|
|
479
|
-
secUid,
|
|
480
|
-
cursor = undefined,
|
|
481
|
-
pageToken = undefined,
|
|
482
|
-
newVersion = undefined,
|
|
483
|
-
},
|
|
460
|
+
{ id, secUid, cursor = undefined, pageToken = undefined },
|
|
484
461
|
options = {},
|
|
485
462
|
) {
|
|
486
463
|
const params = filterUndefinedValues({
|
|
@@ -489,7 +466,6 @@ class TiktokEndpoints {
|
|
|
489
466
|
secUid,
|
|
490
467
|
cursor,
|
|
491
468
|
page_token: pageToken,
|
|
492
|
-
new_version: newVersion,
|
|
493
469
|
});
|
|
494
470
|
return this.#requester.get("/tt/user/followers", params, {
|
|
495
471
|
timeout: options.timeout,
|
|
@@ -502,19 +478,12 @@ class TiktokEndpoints {
|
|
|
502
478
|
* secUid: string;
|
|
503
479
|
* cursor?: number;
|
|
504
480
|
* pageToken?: string;
|
|
505
|
-
* newVersion?: boolean;
|
|
506
481
|
* }} params
|
|
507
482
|
* @param {{ extraParams?: Record<string, any>; timeout?: number }} options
|
|
508
483
|
* @returns {Promise<EDResponse>}
|
|
509
484
|
*/
|
|
510
485
|
userFollowings(
|
|
511
|
-
{
|
|
512
|
-
id,
|
|
513
|
-
secUid,
|
|
514
|
-
cursor = undefined,
|
|
515
|
-
pageToken = undefined,
|
|
516
|
-
newVersion = undefined,
|
|
517
|
-
},
|
|
486
|
+
{ id, secUid, cursor = undefined, pageToken = undefined },
|
|
518
487
|
options = {},
|
|
519
488
|
) {
|
|
520
489
|
const params = filterUndefinedValues({
|
|
@@ -523,7 +492,6 @@ class TiktokEndpoints {
|
|
|
523
492
|
secUid,
|
|
524
493
|
cursor,
|
|
525
494
|
page_token: pageToken,
|
|
526
|
-
new_version: newVersion,
|
|
527
495
|
});
|
|
528
496
|
return this.#requester.get("/tt/user/followings", params, {
|
|
529
497
|
timeout: options.timeout,
|
package/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.1.
|
|
1
|
+
export const VERSION = "0.1.12";
|