- 开发指南
- 工作区
- 表格数据
- 数据仓库数据
- 文件
- 订阅
- 服务商
获取订阅列表
POST
https://api.huoban.com/openapi/v1/event/list
请求参数
Header 参数
Open-Authorization
string
必需
默认值:
Bearer {{API_KEY}}
Body 参数application/json
source_id
string
订阅的对象ID
source_type
string
订阅的对象类型
limit
integer
每页条数
offset
integer
分页偏移量
示例
{
"source_id": "{{TABLE_ID}}",
"source_type": "table"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.huoban.com/openapi/v1/event/list' \
--header 'Open-Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"source_id": "",
"source_type": "table"
}'
返回响应
🟢200成功
application/json
Body
code
integer
错误码
message
string
错误信息
data
object
返回数据
total
integer
必需
subscribes
array[object (订阅) {4}]
必需
meta
object
元数据
trace_id
string
请求ID
示例
{
"code": 0,
"message": "success",
"data": {
"total": 1,
"subscribes": [
{
"source_id": "2100000014303340",
"source_type": "table",
"events": [
"item.update",
"item.create"
],
"state": 1
}
]
},
"meta": {
"trace_id": "1652588571980470"
}
}
修改于 2022-06-06 03:44:26