@getanyapi/sdk 0.7.1 → 0.8.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 CHANGED
@@ -4927,6 +4927,35 @@ var TwitterNamespace = class {
4927
4927
  tweetTranscript(input, options) {
4928
4928
  return this._core.run("twitter.tweet_transcript", input, options);
4929
4929
  }
4930
+ /**
4931
+ * X / Twitter User Posts
4932
+ *
4933
+ * Get an X (Twitter) account's profile Posts-tab timeline by handle. Results follow profile order: a pinned post may appear first, followed by otherwise reverse-chronological authored posts, reposts, quotes, and self-thread continuations.
4934
+ *
4935
+ * Price: $0.00075 per request.
4936
+ *
4937
+ * @example
4938
+ * const res = await client.twitter.userPosts({ handle: "levelsio" });
4939
+ */
4940
+ userPosts(input, options) {
4941
+ return this._core.run("twitter.user_posts", input, options);
4942
+ }
4943
+ /**
4944
+ * Iterate every result of X / Twitter User Posts across pages.
4945
+ *
4946
+ * Yields items directly; call `.pages()` on the return value to walk whole
4947
+ * result pages instead (each carries its own costUsd).
4948
+ */
4949
+ iterUserPosts(input, options) {
4950
+ return paginate(
4951
+ this._core,
4952
+ "twitter.user_posts",
4953
+ input,
4954
+ "tweets",
4955
+ false,
4956
+ options
4957
+ );
4958
+ }
4930
4959
  /**
4931
4960
  * X / Twitter User Tweets and Replies
4932
4961
  *