@getanyapi/sdk 0.7.0 → 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 +32 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +115 -10
- package/dist/index.d.ts +115 -10
- package/dist/index.js +32 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4829,20 +4829,49 @@ var TwitterNamespace = class {
|
|
|
4829
4829
|
return this._core.run("twitter.tweet_transcript", input, options);
|
|
4830
4830
|
}
|
|
4831
4831
|
/**
|
|
4832
|
-
* Twitter User
|
|
4832
|
+
* X / Twitter User Posts
|
|
4833
4833
|
*
|
|
4834
|
-
* Get an X (Twitter) account's
|
|
4834
|
+
* 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.
|
|
4835
4835
|
*
|
|
4836
4836
|
* Price: $0.00075 per request.
|
|
4837
4837
|
*
|
|
4838
4838
|
* @example
|
|
4839
|
+
* const res = await client.twitter.userPosts({ handle: "levelsio" });
|
|
4840
|
+
*/
|
|
4841
|
+
userPosts(input, options) {
|
|
4842
|
+
return this._core.run("twitter.user_posts", input, options);
|
|
4843
|
+
}
|
|
4844
|
+
/**
|
|
4845
|
+
* Iterate every result of X / Twitter User Posts across pages.
|
|
4846
|
+
*
|
|
4847
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
4848
|
+
* result pages instead (each carries its own costUsd).
|
|
4849
|
+
*/
|
|
4850
|
+
iterUserPosts(input, options) {
|
|
4851
|
+
return paginate(
|
|
4852
|
+
this._core,
|
|
4853
|
+
"twitter.user_posts",
|
|
4854
|
+
input,
|
|
4855
|
+
"tweets",
|
|
4856
|
+
false,
|
|
4857
|
+
options
|
|
4858
|
+
);
|
|
4859
|
+
}
|
|
4860
|
+
/**
|
|
4861
|
+
* X / Twitter User Tweets and Replies
|
|
4862
|
+
*
|
|
4863
|
+
* Get up to the requested limit of tweets and replies authored by an X (Twitter) account in one bulk call, with engagement, views, and language. The current lane returns nextCursor as null; cursor is reserved for future cursor-capable lanes.
|
|
4864
|
+
*
|
|
4865
|
+
* Price: $0 per request plus $0.0002 per result (maximum $0.2).
|
|
4866
|
+
*
|
|
4867
|
+
* @example
|
|
4839
4868
|
* const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
|
|
4840
4869
|
*/
|
|
4841
4870
|
userTweets(input, options) {
|
|
4842
4871
|
return this._core.run("twitter.user_tweets", input, options);
|
|
4843
4872
|
}
|
|
4844
4873
|
/**
|
|
4845
|
-
* Iterate every result of Twitter User Tweets across pages.
|
|
4874
|
+
* Iterate every result of X / Twitter User Tweets and Replies across pages.
|
|
4846
4875
|
*
|
|
4847
4876
|
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
4848
4877
|
* result pages instead (each carries its own costUsd).
|