ensembledata 0.1.9 → 0.1.10
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 +11 -17
- package/src/version.js +1 -1
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -316,18 +316,12 @@ class TiktokEndpoints {
|
|
|
316
316
|
* url: string;
|
|
317
317
|
* newVersion?: boolean;
|
|
318
318
|
* downloadVideo?: boolean;
|
|
319
|
-
* alternativeMethod?: boolean;
|
|
320
319
|
* }} params
|
|
321
320
|
* @param {{ extraParams?: Record<string, any>; timeout?: number }} options
|
|
322
321
|
* @returns {Promise<EDResponse>}
|
|
323
322
|
*/
|
|
324
323
|
postInfo(
|
|
325
|
-
{
|
|
326
|
-
url,
|
|
327
|
-
newVersion = undefined,
|
|
328
|
-
downloadVideo = undefined,
|
|
329
|
-
alternativeMethod = undefined,
|
|
330
|
-
},
|
|
324
|
+
{ url, newVersion = undefined, downloadVideo = undefined },
|
|
331
325
|
options = {},
|
|
332
326
|
) {
|
|
333
327
|
const params = filterUndefinedValues({
|
|
@@ -335,7 +329,6 @@ class TiktokEndpoints {
|
|
|
335
329
|
url,
|
|
336
330
|
new_version: newVersion,
|
|
337
331
|
download_video: downloadVideo,
|
|
338
|
-
alternative_method: alternativeMethod,
|
|
339
332
|
});
|
|
340
333
|
return this.#requester.get("/tt/post/info", params, {
|
|
341
334
|
timeout: options.timeout,
|
|
@@ -347,18 +340,12 @@ class TiktokEndpoints {
|
|
|
347
340
|
* awemeIds: string[];
|
|
348
341
|
* newVersion?: boolean;
|
|
349
342
|
* downloadVideo?: boolean;
|
|
350
|
-
* alternativeMethod?: boolean;
|
|
351
343
|
* }} params
|
|
352
344
|
* @param {{ extraParams?: Record<string, any>; timeout?: number }} options
|
|
353
345
|
* @returns {Promise<EDResponse>}
|
|
354
346
|
*/
|
|
355
347
|
multiPostInfo(
|
|
356
|
-
{
|
|
357
|
-
awemeIds,
|
|
358
|
-
newVersion = undefined,
|
|
359
|
-
downloadVideo = undefined,
|
|
360
|
-
alternativeMethod = undefined,
|
|
361
|
-
},
|
|
348
|
+
{ awemeIds, newVersion = undefined, downloadVideo = undefined },
|
|
362
349
|
options = {},
|
|
363
350
|
) {
|
|
364
351
|
const params = filterUndefinedValues({
|
|
@@ -366,7 +353,6 @@ class TiktokEndpoints {
|
|
|
366
353
|
ids: awemeIds.join(";"),
|
|
367
354
|
new_version: newVersion,
|
|
368
355
|
download_video: downloadVideo,
|
|
369
|
-
alternative_method: alternativeMethod,
|
|
370
356
|
});
|
|
371
357
|
return this.#requester.get("/tt/post/multi-info", params, {
|
|
372
358
|
timeout: options.timeout,
|
|
@@ -481,13 +467,20 @@ class TiktokEndpoints {
|
|
|
481
467
|
* id: string;
|
|
482
468
|
* secUid: string;
|
|
483
469
|
* cursor?: number;
|
|
470
|
+
* pageToken?: string;
|
|
484
471
|
* newVersion?: boolean;
|
|
485
472
|
* }} params
|
|
486
473
|
* @param {{ extraParams?: Record<string, any>; timeout?: number }} options
|
|
487
474
|
* @returns {Promise<EDResponse>}
|
|
488
475
|
*/
|
|
489
476
|
userFollowers(
|
|
490
|
-
{
|
|
477
|
+
{
|
|
478
|
+
id,
|
|
479
|
+
secUid,
|
|
480
|
+
cursor = undefined,
|
|
481
|
+
pageToken = undefined,
|
|
482
|
+
newVersion = undefined,
|
|
483
|
+
},
|
|
491
484
|
options = {},
|
|
492
485
|
) {
|
|
493
486
|
const params = filterUndefinedValues({
|
|
@@ -495,6 +488,7 @@ class TiktokEndpoints {
|
|
|
495
488
|
id,
|
|
496
489
|
secUid,
|
|
497
490
|
cursor,
|
|
491
|
+
page_token: pageToken,
|
|
498
492
|
new_version: newVersion,
|
|
499
493
|
});
|
|
500
494
|
return this.#requester.get("/tt/user/followers", params, {
|
package/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.1.
|
|
1
|
+
export const VERSION = "0.1.10";
|