不厌其烦的小布

不厌其烦的小布 · Ações GPT

case

  • POST /cgi-bin/webhook/send?key=39608ef1-a370-4093-886c-2593a37ba25e发送企业微信
Esquema API original
{
  "openapi": "3.0.1",
  "info": {
    "title": "case",
    "description": "",
    "version": "1.0.0"
  },
  "tags": [],
  "paths": {
    "/cgi-bin/webhook/send?key=39608ef1-a370-4093-886c-2593a37ba25e": {
      "post": {
        "operationId": "send_qiye_wechat",
        "summary": "发送企业微信",
        "x-apifox-folder": "",
        "x-apifox-status": "released",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "key",
            "in": "query",
            "description": "默认值:39608ef1-a370-4093-886c-2593a37ba25e",
            "required": true,
            "example": "39608ef1-a370-4093-886c-2593a37ba25e",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "msgtype": {
                    "type": "string",
                    "description": "默认值:text",
                    "title": "消息类型"
                  },
                  "text": {
                    "type": "object",
                    "properties": {
                      "content": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "content"
                    ],
                    "x-apifox-orders": [
                      "content"
                    ],
                    "title": "消息内容",
                    "x-apifox-ignore-properties": []
                  }
                },
                "required": [
                  "msgtype",
                  "text"
                ],
                "x-apifox-orders": [
                  "msgtype",
                  "text"
                ],
                "x-apifox-ignore-properties": []
              },
              "example": {
                "msgtype": "text",
                "text": {
                  "content": "Hello, 这是一条来自企业微信的消息!"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errcode": {
                      "type": "integer",
                      "title": "错误码"
                    },
                    "errmsg": {
                      "type": "string",
                      "title": "错误信息",
                      "description": "ok表示成功"
                    }
                  },
                  "required": [
                    "errcode",
                    "errmsg"
                  ],
                  "x-apifox-orders": [
                    "errcode",
                    "errmsg"
                  ],
                  "x-apifox-ignore-properties": []
                },
                "examples": {
                  "1": {
                    "summary": "成功示例",
                    "value": {
                      "errcode": 0,
                      "errmsg": "ok"
                    }
                  }
                }
              }
            }
          }
        },
        "x-run-in-apifox": "https://apifox.com/web/project/1917423/apis/api-124196995-run"
      }
    }
  },
  "components": {
    "schemas": {}
  },
  "servers": [
    {
      "url": "https://qyapi.weixin.qq.com",
      "description": "正式环境"
    }
  ]
}