ensembledata 0.1.5 → 0.1.6
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 +33 -6
- package/src/version.js +1 -1
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -480,6 +480,26 @@ class TiktokEndpoints {
|
|
|
480
480
|
timeout: options.timeout,
|
|
481
481
|
});
|
|
482
482
|
}
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* @param {{ keyword: string; cursor?: number; country?: string }} params
|
|
486
|
+
* @param {{ extraParams?: Record<string, any>; timeout?: number }} options
|
|
487
|
+
* @returns {Promise<EDResponse>}
|
|
488
|
+
*/
|
|
489
|
+
livesSearch(
|
|
490
|
+
{ keyword, cursor = undefined, country = undefined },
|
|
491
|
+
options = {},
|
|
492
|
+
) {
|
|
493
|
+
const params = filterUndefinedValues({
|
|
494
|
+
...options.extraParams,
|
|
495
|
+
keyword,
|
|
496
|
+
cursor,
|
|
497
|
+
country,
|
|
498
|
+
});
|
|
499
|
+
return this.#requester.get("/tt/live/search", params, {
|
|
500
|
+
timeout: options.timeout,
|
|
501
|
+
});
|
|
502
|
+
}
|
|
483
503
|
}
|
|
484
504
|
|
|
485
505
|
class YoutubeEndpoints {
|
|
@@ -566,15 +586,23 @@ class YoutubeEndpoints {
|
|
|
566
586
|
}
|
|
567
587
|
|
|
568
588
|
/**
|
|
569
|
-
* @param {{
|
|
589
|
+
* @param {{
|
|
590
|
+
* channelId: string;
|
|
591
|
+
* fromUrl?: boolean;
|
|
592
|
+
* getAdditionalInfo?: boolean;
|
|
593
|
+
* }} params
|
|
570
594
|
* @param {{ extraParams?: Record<string, any>; timeout?: number }} options
|
|
571
595
|
* @returns {Promise<EDResponse>}
|
|
572
596
|
*/
|
|
573
|
-
channelDetailedInfo(
|
|
597
|
+
channelDetailedInfo(
|
|
598
|
+
{ channelId, fromUrl = undefined, getAdditionalInfo = undefined },
|
|
599
|
+
options = {},
|
|
600
|
+
) {
|
|
574
601
|
const params = filterUndefinedValues({
|
|
575
602
|
...options.extraParams,
|
|
576
603
|
browseId: channelId,
|
|
577
604
|
from_url: fromUrl,
|
|
605
|
+
get_additional_info: getAdditionalInfo,
|
|
578
606
|
});
|
|
579
607
|
return this.#requester.get("/youtube/channel/detailed-info", params, {
|
|
580
608
|
timeout: options.timeout,
|
|
@@ -1054,15 +1082,14 @@ class RedditEndpoints {
|
|
|
1054
1082
|
}
|
|
1055
1083
|
|
|
1056
1084
|
/**
|
|
1057
|
-
* @param {{
|
|
1085
|
+
* @param {{ permalink: string }} params
|
|
1058
1086
|
* @param {{ extraParams?: Record<string, any>; timeout?: number }} options
|
|
1059
1087
|
* @returns {Promise<EDResponse>}
|
|
1060
1088
|
*/
|
|
1061
|
-
postComments({
|
|
1089
|
+
postComments({ permalink }, options = {}) {
|
|
1062
1090
|
const params = filterUndefinedValues({
|
|
1063
1091
|
...options.extraParams,
|
|
1064
|
-
|
|
1065
|
-
cursor,
|
|
1092
|
+
permalink,
|
|
1066
1093
|
});
|
|
1067
1094
|
return this.#requester.get("/reddit/post/comments", params, {
|
|
1068
1095
|
timeout: options.timeout,
|
package/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.1.
|
|
1
|
+
export const VERSION = "0.1.6";
|