@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.cjs
CHANGED
|
@@ -4928,20 +4928,49 @@ var TwitterNamespace = class {
|
|
|
4928
4928
|
return this._core.run("twitter.tweet_transcript", input, options);
|
|
4929
4929
|
}
|
|
4930
4930
|
/**
|
|
4931
|
-
* Twitter User
|
|
4931
|
+
* X / Twitter User Posts
|
|
4932
4932
|
*
|
|
4933
|
-
* Get an X (Twitter) account's
|
|
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
4934
|
*
|
|
4935
4935
|
* Price: $0.00075 per request.
|
|
4936
4936
|
*
|
|
4937
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
|
+
}
|
|
4959
|
+
/**
|
|
4960
|
+
* X / Twitter User Tweets and Replies
|
|
4961
|
+
*
|
|
4962
|
+
* 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.
|
|
4963
|
+
*
|
|
4964
|
+
* Price: $0 per request plus $0.0002 per result (maximum $0.2).
|
|
4965
|
+
*
|
|
4966
|
+
* @example
|
|
4938
4967
|
* const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
|
|
4939
4968
|
*/
|
|
4940
4969
|
userTweets(input, options) {
|
|
4941
4970
|
return this._core.run("twitter.user_tweets", input, options);
|
|
4942
4971
|
}
|
|
4943
4972
|
/**
|
|
4944
|
-
* Iterate every result of Twitter User Tweets across pages.
|
|
4973
|
+
* Iterate every result of X / Twitter User Tweets and Replies across pages.
|
|
4945
4974
|
*
|
|
4946
4975
|
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
4947
4976
|
* result pages instead (each carries its own costUsd).
|