备考内容/Public
Read IELTS knowledge article
Read one full published IELTS Buddy knowledge article by slug.
Endpoint
POST
/api/v1/agent/capabilities/ielts_prep_read_guide请求参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| maxChars | number | 否 | Maximum article characters to return. |
| offset | number | 否 | Character offset returned by the preceding read. |
| slug | string | 是 | Published prep guide slug. |
调用示例
curl -X POST \
'https://work.ieltsbuddy.igopx.cn/api/v1/agent/capabilities/ielts_prep_read_guide' \
-H 'Content-Type: application/json' \
--data '{"maxChars":12000,"offset":0,"slug":"guide-slug"}'请求结构
{
"type": "object",
"properties": {
"maxChars": {
"default": 12000,
"description": "Maximum article characters to return.",
"type": "integer",
"minimum": 1000,
"maximum": 30000
},
"offset": {
"default": 0,
"description": "Character offset returned by the preceding read.",
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"slug": {
"type": "string",
"minLength": 1,
"description": "Published prep guide slug."
}
},
"required": [
"maxChars",
"offset",
"slug"
],
"additionalProperties": false
}统一响应
接口结果位于 data;code 为 0 表示调用成功。
{
"code": 0,
"data": {},
"message": "ok"
}错误码
400
40001请求参数不符合接口契约404
40401接口或目标资源不存在