@getanyapi/sdk 0.14.0 → 0.15.0
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/dist/index.cjs +29 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +105 -11
- package/dist/index.d.ts +105 -11
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3694,6 +3694,22 @@ var RedditNamespace = class {
|
|
|
3694
3694
|
subredditPosts(input, options) {
|
|
3695
3695
|
return this._core.run("reddit.subreddit_posts", input, options);
|
|
3696
3696
|
}
|
|
3697
|
+
/**
|
|
3698
|
+
* Iterate every result of Reddit Subreddit Posts across pages.
|
|
3699
|
+
*
|
|
3700
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
3701
|
+
* result pages instead (each carries its own costUsd).
|
|
3702
|
+
*/
|
|
3703
|
+
iterSubredditPosts(input, options) {
|
|
3704
|
+
return paginate(
|
|
3705
|
+
this._core,
|
|
3706
|
+
"reddit.subreddit_posts",
|
|
3707
|
+
input,
|
|
3708
|
+
"posts",
|
|
3709
|
+
false,
|
|
3710
|
+
options
|
|
3711
|
+
);
|
|
3712
|
+
}
|
|
3697
3713
|
/**
|
|
3698
3714
|
* Reddit Subreddit Search
|
|
3699
3715
|
*
|
|
@@ -3723,6 +3739,19 @@ var RedditNamespace = class {
|
|
|
3723
3739
|
options
|
|
3724
3740
|
);
|
|
3725
3741
|
}
|
|
3742
|
+
/**
|
|
3743
|
+
* Reddit Trending Posts
|
|
3744
|
+
*
|
|
3745
|
+
* Get currently trending Reddit posts across all subreddits with stable cursor pagination.
|
|
3746
|
+
*
|
|
3747
|
+
* Price: $0.00036 per request.
|
|
3748
|
+
*
|
|
3749
|
+
* @example
|
|
3750
|
+
* const res = await client.reddit.trendingPosts({ limit: 25 });
|
|
3751
|
+
*/
|
|
3752
|
+
trendingPosts(input, options) {
|
|
3753
|
+
return this._core.run("reddit.trending_posts", input, options);
|
|
3754
|
+
}
|
|
3726
3755
|
/**
|
|
3727
3756
|
* Reddit User Comments
|
|
3728
3757
|
*
|