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