获取表格行
请求
curl -vvv "$API_HOST/open/api/v1/tablenodes/$table_id/row/$row_id/" -H "Authorization: $access-token"
Python 示例
def get_table_row(access_token, table_id, row_id):
url = '%s/open/api/v1/tablenodes/%d/row/%s/' % (API_HOST, table_id, row_id)
headers = {'Authorization': access_token}
req = requests.get(url, headers=headers)
return req.json()
响应
Name | Type | Description |
---|---|---|
detail | array | row info |
∟ id | string | row id |
∟ cells | object | cell info |
∟ meta | object | row meta info |
∟ shareConfig | object | share config info |
响应示例
{
"code": 0,
"detail": {
"id": "6457589faf1c21691b34dab3",
"cells": {
"6457589faf1c21691b34dab1": "03327e4cf4a0d119cdd7903b0116bde8",
"6457589faf1c21691b34dab2": "沙头盛园"
},
"meta": {
"createTime": "2023-05-07T07:51:59.566Z",
"updateTime": "2023-05-07T07:51:59.566Z",
"creatorID": 1,
"updaterID": 1
},
"shareConfig": null
},
"extra": null,
"message": "OK",
"requestID": null
}