x-twitter
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseX (Twitter) API v2 skill using the authenticated user's own developer credentials (OAuth 1.0a, pay-per-use). All commands go through a single entry point: . Each command has its own doc file with the full reference for flags and behavior.
node <base_directory>/x.js <command> [flags][!SETUP] Before first use, check whether exists. If it does NOT exist, run . Then check whether exists. If it does NOT exist, run . NEVER cd into the skill directory; use --prefix to target it without changing your working directory.
<base_directory>/node_modulesnpm install --prefix <base_directory><base_directory>/dist/x.jsnpm run build --prefix <base_directory>[!COMMANDS]
Core:
a) — authenticated user's own account data (profile, metrics, verification). @docs/me.md.
b) — search posts by query (last 7 days or full archive). @docs/search.md.
c) — retrieve one or more posts by ID. @docs/get.md.
d) — create a tweet, reply, or quote tweet. @docs/post.md.
e) — delete a post owned by the authenticated user. @docs/delete.md.
mesearchgetpostdeleteEngagement:
f) — like a post by tweet ID. @docs/like.md.
g) — remove a like from a post. @docs/like.md.
h) — repost (retweet) a post. @docs/repost.md.
i) — remove a repost. @docs/repost.md.
likeunlikerepostunrepostSocial:
j) — look up user(s) by username or ID. @docs/user.md.
k) — follow a user by username or ID. @docs/follow.md.
l) — unfollow a user. @docs/follow.md.
m) — list a user's followers. @docs/followers.md.
n) — list accounts a user follows. @docs/followers.md.
userfollowunfollowfollowersfollowingFeed:
o) — your home timeline (reverse chronological). @docs/timeline.md.
p) — posts that mention you. @docs/mentions.md.
timelinementionsBookmarks:
q) — bookmark a post. @docs/bookmark.md.
r) — remove a bookmark. @docs/bookmark.md.
s) — list your bookmarks. @docs/bookmark.md.
bookmarkunbookmarkbookmarksModeration:
t) — mute a user. @docs/mute.md.
u) — unmute a user. @docs/mute.md.
v) — list muted accounts. @docs/mute.md.
w) — list blocked accounts. @docs/blocked.md.
x) — hide a reply to your post. @docs/hide-reply.md.
muteunmutemutedblockedhide-replyAnalytics:
y) — users who liked a post. @docs/likers.md.
z) — users who reposted a post. @docs/reposters.md.
aa) — quote tweets of a post. @docs/quotes.md.
ab) — count posts matching a query over time. @docs/count.md.
ac) — reposts of your posts by others. @docs/reposts-of-me.md.
likersrepostersquotescountreposts-of-meDiscovery:
ad) — search users by query. @docs/search-users.md.
ae) — trending topics (worldwide or personalized). @docs/trending.md.
search-userstrending[!CREDENTIALS] Four OAuth 1.0a variables are REQUIRED: , , , . They resolve from the first source that provides them: a) in cwd, b) in cwd, c) in the plugin directory, d) in the plugin directory, e) environment variables. Obtain them from the X Developer Console (Apps > Keys and tokens).
X_API_KEYX_API_SECRETX_ACCESS_TOKENX_ACCESS_TOKEN_SECRET.env.local.env.env.local.env本X(Twitter)API v2 Skill使用经过认证的用户自身开发者凭证(OAuth 1.0a,按使用付费)。所有命令都通过单一入口执行:。每个命令都有对应的文档文件,包含参数和行为的完整参考说明。
node <base_directory>/x.js <command> [flags][!SETUP] 首次使用前,请检查是否存在。如果不存在,请运行。然后检查是否存在。如果不存在,请运行。切勿进入Skill目录;请使用--prefix参数来指定目标目录,无需更改当前工作目录。
<base_directory>/node_modulesnpm install --prefix <base_directory><base_directory>/dist/x.jsnpm run build --prefix <base_directory>[!COMMANDS]
核心功能:
a) — 获取已认证用户的自身账户数据(个人资料、指标、认证信息)。参考@docs/me.md。
b) — 根据查询条件搜索推文(最近7天或完整归档内容)。参考@docs/search.md。
c) — 根据ID获取一条或多条推文。参考@docs/get.md。
d) — 创建推文、回复推文或引用推文。参考@docs/post.md。
e) — 删除已认证用户发布的推文。参考@docs/delete.md。
mesearchgetpostdelete互动功能:
f) — 根据推文ID点赞某条推文。参考@docs/like.md。
g) — 取消对某条推文的点赞。参考@docs/like.md。
h) — 转发(Retweet)某条推文。参考@docs/repost.md。
i) — 取消转发。参考@docs/repost.md。
likeunlikerepostunrepost社交功能:
j) — 根据用户名或ID查找用户。参考@docs/user.md。
k) — 根据用户名或ID关注用户。参考@docs/follow.md。
l) — 取消关注用户。参考@docs/follow.md。
m) — 列出某用户的粉丝。参考@docs/followers.md。
n) — 列出某用户关注的账号。参考@docs/followers.md。
userfollowunfollowfollowersfollowing动态流:
o) — 你的主页动态流(按时间倒序排列)。参考@docs/timeline.md。
p) — 提及你的推文。参考@docs/mentions.md。
timelinementions书签:
q) — 为推文添加书签。参考@docs/bookmark.md。
r) — 取消推文的书签。参考@docs/bookmark.md。
s) — 列出你的所有书签。参考@docs/bookmark.md。
bookmarkunbookmarkbookmarks审核功能:
t) — 屏蔽用户。参考@docs/mute.md。
u) — 取消屏蔽用户。参考@docs/mute.md。
v) — 列出已屏蔽的账号。参考@docs/mute.md。
w) — 列出已拉黑的账号。参考@docs/blocked.md。
x) — 隐藏对你推文的回复。参考@docs/hide-reply.md。
muteunmutemutedblockedhide-reply分析功能:
y) — 获取点赞某条推文的用户列表。参考@docs/likers.md。
z) — 获取转发某条推文的用户列表。参考@docs/reposters.md。
aa) — 获取某条推文的引用推文。参考@docs/quotes.md。
ab) — 统计一段时间内符合查询条件的推文数量。参考@docs/count.md。
ac) — 获取其他用户转发你推文的内容。参考@docs/reposts-of-me.md。
likersrepostersquotescountreposts-of-me发现功能:
ad) — 根据查询条件搜索用户。参考@docs/search-users.md。
ae) — 获取热门话题(全球或个性化)。参考@docs/trending.md。
search-userstrending[!CREDENTIALS] 必须配置四个OAuth 1.0a变量:、、、。系统会按以下优先级顺序读取这些变量:a) 当前工作目录下的文件,b) 当前工作目录下的文件,c) 插件目录下的文件,d) 插件目录下的文件,e) 环境变量。你可以从X开发者控制台(应用>密钥和令牌)获取这些凭证。
X_API_KEYX_API_SECRETX_ACCESS_TOKENX_ACCESS_TOKEN_SECRET.env.local.env.env.local.env