like

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

X Like

X 点赞

Use this managed skill for liking and unliking posts on X through Shift.
使用这个托管技能,通过Shift在X平台上点赞和取消点赞帖子。

When to use

使用场景

  • The user wants to like a tweet
  • The user wants to unlike a tweet they previously liked
  • 用户想要点赞一条推文
  • 用户想要取消点赞之前点过赞的推文

How to invoke

调用方式

Send a
POST
request to
${SHIFT_LOCAL_GATEWAY}/skill-router/invoke
with:
json
{
  "skillProvider": "x",
  "skill": "like",
  "action": "create",
  "input": {
    "userId": "123",
    "tweetId": "456"
  }
}
For removing a like, use:
json
{
  "skillProvider": "x",
  "skill": "like",
  "action": "delete",
  "input": {
    "userId": "123",
    "tweetId": "456"
  }
}
${SHIFT_LOCAL_GATEWAY}/skill-router/invoke
发送
POST
请求,请求体如下:
json
{
  "skillProvider": "x",
  "skill": "like",
  "action": "create",
  "input": {
    "userId": "123",
    "tweetId": "456"
  }
}
若要取消点赞,使用以下请求体:
json
{
  "skillProvider": "x",
  "skill": "like",
  "action": "delete",
  "input": {
    "userId": "123",
    "tweetId": "456"
  }
}

Notes

注意事项

  • This skill requires X to be connected in Shift.
  • Do not ask the user to paste raw credentials into chat.
  • 该技能需要在Shift中已连接X平台。
  • 不要要求用户在聊天中粘贴原始凭证。