post

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

X Post

X 帖子操作

Use this managed skill when the user wants to post on X, reply to a post, quote a post, or delete a post.
This skill uses Shift's local Skill Router. Do not ask the user to paste credentials into chat.
当用户需要在X平台上发布帖子、回复帖子、引用帖子或删除帖子时,可使用此托管Skill。
本Skill使用Shift本地Skill Router。请勿要求用户在聊天中粘贴凭证信息。

Invocation

调用方式

Base URL:
SHIFT_LOCAL_GATEWAY
Endpoint:
POST /skill-router/invoke
Request body for a new tweet:
json
{
  "skillProvider": "x",
  "skill": "post",
  "action": "create",
  "input": {
    "text": "Hello from Shift"
  }
}
Request body for a reply:
json
{
  "skillProvider": "x",
  "skill": "post",
  "action": "reply",
  "input": {
    "text": "Reply text",
    "tweetId": "1234567890"
  }
}
Request body for a quote tweet:
json
{
  "skillProvider": "x",
  "skill": "post",
  "action": "quote",
  "input": {
    "text": "Quoted text",
    "tweetId": "1234567890"
  }
}
Request body to delete a tweet:
json
{
  "skillProvider": "x",
  "skill": "post",
  "action": "delete",
  "input": {
    "tweetId": "1234567890"
  }
}
If the connection is missing, tell the user to configure X in Shift.
基础URL:
SHIFT_LOCAL_GATEWAY
接口地址:
POST /skill-router/invoke
发布新推文的请求体:
json
{
  "skillProvider": "x",
  "skill": "post",
  "action": "create",
  "input": {
    "text": "Hello from Shift"
  }
}
回复推文的请求体:
json
{
  "skillProvider": "x",
  "skill": "post",
  "action": "reply",
  "input": {
    "text": "Reply text",
    "tweetId": "1234567890"
  }
}
引用推文的请求体:
json
{
  "skillProvider": "x",
  "skill": "post",
  "action": "quote",
  "input": {
    "text": "Quoted text",
    "tweetId": "1234567890"
  }
}
删除推文的请求体:
json
{
  "skillProvider": "x",
  "skill": "post",
  "action": "delete",
  "input": {
    "tweetId": "1234567890"
  }
}
如果连接缺失,请告知用户在Shift中配置X平台。