Gets the table of contents of a book.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
aicontent:ListTextbookAssistantBookDirectories |
list |
*All Resource
|
None | None |
Request syntax
POST /api/v1/textbookAssistant/teachingResource/ListBookDirectories HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| bookId |
string |
Yes |
The book ID. You can obtain this ID from the API for retrieving English textbooks. |
231698 |
| scenario |
string |
Yes |
The exercise scenario. Valid values:
|
SYNC |
| authToken |
string |
Yes |
The API authorization token. You can obtain this token from the authorization API for the AI English teacher feature. |
tc_e6dc70c890866f4028ca685b6fa29874 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response schema. |
||
| requestId |
string |
The request ID. |
0A5E9849-A2F0-551D-A7D8-1A8118557BAB |
| success |
boolean |
Indicates whether the request succeeded. |
true |
| errCode |
string |
The error code. |
B_USER_NOT_FOUND_EXCEPTION |
| errMessage |
string |
The error message. |
用户不存在 |
| httpStatusCode |
integer |
The HTTP status code. |
200 |
| data |
object |
The data object. |
|
| editionInfo |
object |
The edition details. |
|
| bookId |
string |
The book ID. |
55857 |
| isbn |
string |
The International Standard Book Number (ISBN). |
9787544413695 |
| edition |
string |
The edition. |
2010-1(2) |
| impression |
string |
The impression. |
2019-1(10) |
| publisher |
string |
The publisher. |
人民教育出版社 |
| version |
string |
The version. |
人教版 |
| subject |
string |
The subject. |
ENGLISH |
| grade |
string |
The grade. Valid values: 1–9. |
3 |
| bookVolume |
string |
The book volume. |
1 |
| directoryTree |
array<object> |
The directory tree. |
|
|
array<object> |
|||
| directoryId |
string |
The directory ID. |
05758807ed8e11eebe6e0c42a106bb02 |
| directoryName |
string |
The directory name. |
2 Jobs |
| topic |
array<object> |
The topic. |
|
|
object |
|||
| labelId |
string |
The label ID. |
1323 |
| labelName |
string |
The label name. |
身边事物环境 |
| unit |
array<object> |
The unit. |
|
|
array<object> |
|||
| directoryId |
string |
The directory ID. |
05758807ed8e11eebe6e0c42a106bb02 |
| directoryName |
string |
The directory name. |
unit 2 |
| topic |
array<object> |
The topic. |
|
|
object |
|||
| labelId |
string |
The label ID. |
1326 |
| labelName |
string |
The label name. |
自我介绍 |
| section |
array<object> |
The section. |
|
|
array<object> |
|||
| directoryId |
string |
The directory ID. |
05758807ed8e11eebe6e0c42a106bb02 |
| directoryName |
string |
The directory name. |
section 2 |
| topic |
array<object> |
The topic. |
|
|
object |
Topic details. |
||
| labelId |
string |
The label ID. |
1329 |
| labelName |
string |
The label name. |
自我介绍 |
| children |
any |
Child nodes for backward compatibility. This property is optional. |
可能存在的子元素,兼容数据使用,不一定存在 |
Examples
Success response
JSON format
{
"requestId": "0A5E9849-A2F0-551D-A7D8-1A8118557BAB",
"success": true,
"errCode": "B_USER_NOT_FOUND_EXCEPTION",
"errMessage": "用户不存在",
"httpStatusCode": 200,
"data": {
"editionInfo": {
"bookId": "55857",
"isbn": "9787544413695",
"edition": "2010-1(2)",
"impression": "2019-1(10)",
"publisher": "人民教育出版社",
"version": "人教版",
"subject": "ENGLISH",
"grade": "3",
"bookVolume": "1"
},
"directoryTree": [
{
"directoryId": "05758807ed8e11eebe6e0c42a106bb02",
"directoryName": "2 Jobs",
"topic": [
{
"labelId": "1323",
"labelName": "身边事物环境"
}
],
"unit": [
{
"directoryId": "05758807ed8e11eebe6e0c42a106bb02",
"directoryName": "unit 2",
"topic": [
{
"labelId": "1326",
"labelName": "自我介绍"
}
],
"section": [
{
"directoryId": "05758807ed8e11eebe6e0c42a106bb02",
"directoryName": "section 2",
"topic": [
{
"labelId": "1329",
"labelName": "自我介绍"
}
],
"children": "可能存在的子元素,兼容数据使用,不一定存在"
}
]
}
]
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.