搜索

PythonReactSEOPDF
OpenClaw

qinglite-platform

模拟登录轻识 (qinglite.cn) 并获取 token,或使用 token 发布作品。

ccf222220 来源安装数☆ 0 仓库 Starsv1.1.0

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install ccf22222/qinglite

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

轻识平台操作技能

描述

本技能整合了轻识平台的模拟登录和作品发布功能。用户可以选择执行登录操作以获取 token,或使用已有的 token 发布作品。

操作步骤

登录操作 (action: "login")
  1. 接收用户提供的手机号 (mobile) 和验证码 (code)。
  2. 构建请求体,包含 mobile, code, prefix (固定为 "+86"), act (固定为 1), app_type (固定为 "openclaw"), 和 post_type (固定为 "ajax")。
  3. 向登录接口 https://www.qinglite.cn/api/interface/user/user_mobile/login 发送 POST 请求。
  4. 解析返回的 JSON 数据,提取 token。
  5. 将 token 返回给用户。
发布作品操作 (action: "publish")
  1. 接收用户提供的 token, title, content, type, media。
  2. 构建请求体,包含 title, content, type, media, token, app_type (固定为 "openclaw")。
  3. 向发布接口 https://www.qinglite.cn/api/interface/content/news/create 发送 POST 请求。
  4. 解析返回的 JSON 数据,确认发布结果。
  5. 将发布结果返回给用户。

接口信息

登录接口
  • URL: https://www.qinglite.cn/api/interface/user/user_mobile/login
  • Method: POST
  • Request Body (JSON):
    {
      "mobile": "用户手机号",
      "code": "用户验证码",
      "prefix": "+86",
      "act": 1,
      "app_type": "openclaw",
      "post_type": "ajax"
    }
    
  • Response (JSON):
    {
      "code": 20000,
      "msg": "success",
      "data": {
        "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
    
    (成功时返回示例,code 为 20000,data 中包含 token)
发布作品接口
  • URL: https://www.qinglite.cn/api/interface/content/news/create
  • Method: POST
  • Request Body (JSON):
    {
      "title": "作品标题",
      "content": "作品内容",
      "type": 1, // 1文章, 2文字, 3图片, 4视频
      "media": "文件路径,多个英文逗号隔开",
      "token": "登录返回的token值",
      "app_type": "openclaw"
    }
    
  • Response (JSON):
    {
      "code": 20000,
      "msg": "success"
    }
    
    (成功时返回示例,code 为 20000)

来源信息

Source
github
Repository
openclaw/skills
Path
skills/ccf22222/qinglite
Version
1.1.0
Commit
c52a1d42c5c6253d071695e595425f43e129d836
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# 轻识平台操作技能

## 描述
本技能整合了轻识平台的模拟登录和作品发布功能。用户可以选择执行登录操作以获取 token,或使用已有的 token 发布作品。

## 操作步骤
### 登录操作 (action: "login")
1. 接收用户提供的手机号 (`mobile`) 和验证码 (`code`)。
2. 构建请求体,包含 `mobile`, `code`, `prefix` (固定为 "+86"), `act` (固定为 1), `app_type` (固定为 "openclaw"), 和 `post_type` (固定为 "ajax")。
3. 向登录接口 `https://www.qinglite.cn/api/interface/user/user_mobile/login` 发送 POST 请求。
4. 解析返回的 JSON 数据,提取 `token`。
5. 将 `token` 返回给用户。

### 发布作品操作 (action: "publish")
1. 接收用户提供的 `token`, `title`, `content`, `type`, `media`。
2. 构建请求体,包含 `title`, `content`, `type`, `media`, `token`, `app_type` (固定为 "openclaw")。
3. 向发布接口 `https://www.qinglite.cn/api/interface/content/news/create` 发送 POST 请求。
4. 解析返回的 JSON 数据,确认发布结果。
5. 将发布结果返回给用户。

## 接口信息
### 登录接口
- **URL**: `https://www.qinglite.cn/api/interface/user/user_mobile/login`
- **Method**: `POST`
- **Request Body (JSON)**:
  ```json
  {
    "mobile": "用户手机号",
    "code": "用户验证码",
    "prefix": "+86",
    "act": 1,
    "app_type": "openclaw",
    "post_type": "ajax"
  }
  ```
- **Response (JSON)**:
  ```json
  {
    "code": 20000,
    "msg": "success",
    "data": {
      "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    }
  }
  ```
  (成功时返回示例,`code` 为 20000,`data` 中包含 `token`)

### 发布作品接口
- **URL**: `https://www.qinglite.cn/api/interface/content/news/create`
- **Method**: `POST`
- **Request Body (JSON)**:
  ```json
  {
    "title": "作品标题",
    "content": "作品内容",
    "type": 1, // 1文章, 2文字, 3图片, 4视频
    "media": "文件路径,多个英文逗号隔开",
    "token": "登录返回的token值",
    "app_type": "openclaw"
  }
  ```
- **Response (JSON)**:
  ```json
  {
    "code": 20000,
    "msg": "success"
  }
  ```
  (成功时返回示例,`code` 为 20000)

相关技能

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.