Skip to content

查找选区数据

标签【电子表格】

请求说明

字段
请求地址
配置域名+/openapi+/v7/sheets/{file_id}/worksheets/{worksheet_id}/range_data/find
HTTP 方法
POST
接口描述
签名方式
KSO-1(配置域名+/openapi不参与签名)
限频策略
权限要求
查询和管理传统表格(应用授权) kso.sheets.readwrite
查询传统表格(应用授权) kso.sheets.read
查询和管理传统表格(用户授权) kso.sheets.readwrite
查询传统表格(用户授权) kso.sheets.read

请求头 (Headers)

属性名类型是否必填描述可选值
X-Kso-Date
stringRFC1123 格式的日期,例: Wed, 23 Jan 2013 06:43:08 GMT-
X-Kso-Authorization
stringKSO-1 签名值,详见《签名方法》-
Authorization
string授权凭证,格式为:Bearer {access_token}-

路径参数 (Path)

属性名类型是否必填描述可选值
file_id
string文件ID-
worksheet_id
integer工作表ID-

请求体(Body)

请求体格式: application/json

没有可用的数据

请求体示例

json
{
  "filter": {
    "condition": [
      {
        "col": 0,
        "info": [
          {
            "value": "string"
          }
        ],
        "mode": "filter_mode_and"
      }
    ],
    "duplicates": {
      "col": [
        0
      ]
    },
    "search": [
      {
        "col": 0,
        "value": [
          "string"
        ]
      }
    ]
  },
  "ignore_hidden_cell": true,
  "option_cols": [
    0
  ],
  "page": {
    "page": 0,
    "page_size": 0
  },
  "range": {
    "col_from": 0,
    "col_to": 0,
    "row_from": 0,
    "row_to": 0
  },
  "show_total": true
}

响应体(Response)

HTTP状态码: 200
响应体格式: application/json

没有可用的数据

响应体示例

json
{
  "code": 0,
  "msg": "string",
  "data": {
    "merge_range_data": [
      {
        "cell_text": "string",
        "col_from": 0,
        "col_to": 0,
        "is_cell_pic": true,
        "num_format": "string",
        "original_cell_value": "string",
        "pic_content": "string",
        "pic_data": "string",
        "row_from": 0,
        "row_to": 0,
        "sha1": "string",
        "tag": "string"
      }
    ],
    "option_col": [
      {
        "col": 0,
        "texts": [
          {
            "count": 0,
            "origin": "string",
            "text": "string"
          }
        ]
      }
    ],
    "range_data": [
      {
        "cell_text": "string",
        "col_from": 0,
        "col_to": 0,
        "is_cell_pic": true,
        "num_format": "string",
        "original_cell_value": "string",
        "pic_content": "string",
        "pic_data": "string",
        "row_from": 0,
        "row_to": 0,
        "sha1": "string",
        "tag": "string"
      }
    ],
    "result_type": 0,
    "total": 0
  }
}