ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
**基本信息** 接口地址:`http[s]://api.12xue.com/parent/homework` 请求方式:`GET` 请求类型:`application/x-www-form-urlencoded` 响应类型:`json` **请求头** |参数名|必选|描述|默认值| |---|---|---|---| |Token|否|用户唯一token|-| |Source|是|客户端来源标识|-| |Version|是|客户端当前版本号|1.0.0| |Identity|否|用户角色|-| **参数** |参数名|必选|类型|描述|默认值| |---|---|---|---|---| |hwid|是|bigint|作业id|-| |classid|否|bigint|班级id|-| |uid|否|bigint|用户id|-| |identitytype|否|int|身份 3 学生 4家长|4| **返回示例** - success ```json { "ret": 0, "msg": "ok", "id": "103314562098955235", "xkid": "1071", "njid": "8824", "title": "全部-2016-2-23 语文作业", "content": "", "fbrxm": "东方原彤", "fxfw": "5", "fxd": "0", "is_attach": "1", "is_push": "1", "uid": "1033145308280423043", "schoolid": "1033144480035002429", "create_time": "1456209894", "update_time": "1456210120", "zys": "6", "status": "0", "areaid": "910022", "sys_code": "1033", "is_mobile": "0", "collect_total": "0", "quote_total": "0", "comment_total": "0", "xkcode": "1071", "xkname": "语文", "njcode": "21_5", "njname": "五年级", "lx": 1, "color": "yuwen", "count": "0", "materiallist": [ { "id": "1033145621012029767", "hwid": "103314562098955235", "zyid": "1033145620751620682", "zyqf": "2", "ytlx": "1", "zymc": "<img class=\"kfformula\" src=\"http://ftp.12xuedev.com/exercises/2016/02/23/14562075164352_small.jpg\" data-latex=\"{a}^{2}+{b}^{2}={c}^{2}\"/>-本区", "tx": "danxt", "sort": "1", "is_true": "-1" }, { "id": "1033145621012029908", "hwid": "103314562098955235", "zyid": "1033145620756420496", "zyqf": "2", "ytlx": "1", "zymc": "创建的判断题1-本校可见", "tx": "pdt", "sort": "2", "is_true": "-1" }, ...... ], "materialtzxt": [ { "id": "1033145621012030696", "hwid": "103314562098955235", "zyid": "1033145620751620682", "zyqf": "2", "ytlx": "4", "zymc": "<img class=\"kfformula\" src=\"http://ftp.12xuedev.com/exercises/2016/02/23/14562075164352_small.jpg\" data-latex=\"{a}^{2}+{b}^{2}={c}^{2}\"/>-本区", "tx": "danxt", "sort": "1", "is_true": "-1" }, { "id": "1033145621012030848", "hwid": "103314562098955235", "zyid": "1033145620756420496", "zyqf": "2", "ytlx": "4", "zymc": "创建的判断题1-本校可见", "tx": "pdt", "sort": "2", "is_true": "-1" }, ...... ], "materialdxa": [ { "id": "1003144841566713133", "hwid": "1003144841566787", "zyid": "1003144841561223079", "zyqf": "1", "ytlx": "1", "zymc": "湖南的产业转移.3gp", "tx": null, "sort": "3", "zyinfo": { "id": "1003144841561223079", "fbrxm": "nara", "title": "湖南的产业转移", "serverpath": "http://172.16.205.227/", "serverpath2": null, "savepath": "files/2015-11/", "savename": "ny379yii5d09vohz.mp4", "filetype": ".3gp", "filesize": "3581719", "filecode": "1tsmdxu1pc08gir5", "filetime": null, "convert_status": "0", "is_convert": "1", "is_download": "0", "preview_link": null, "xkid": "705", "njid": "766", "bbid": "767", "sxcid": "768", "dyid": "769", "jieid": "770", "uid": "1003144556551481010", "schoolid": "1003143928620085746", "create_time": "1448415612", "update_time": "1448415612", "attach_id": null, "areaid": "370613", "fl": "1", "sys_code": "1003", "mtype": null, "file_link": null, "status": "0", "sys": "1", "fxfw": "5", "fxd": "0", "errorcount": null, "rootpath": null, "outfilepath": "http://172.16.205.227/files/2015-11/ny379yii5d09vohz.mp4_out/", "weboffice_view": "http://weboffice2.gridinfo.com.cn/op/view.aspx?src=" } }, ...... ], "pushlist": [ { "id": "1033145620989920215", "hwid": "103314562098955235", "bjid": "1000145619345181334", "xkid": "1071", "njid": "8824", "finish_time": "1456243199", "uid": "1033145308280423043", "create_time": "1456207200" } ], "finish_time": "1456243199", "step": 0, "yxzt": 0, "signature": null, "attach": [ { "url": "http://ftp.12xuedev.com/abc", "ios_url": "http://ftp.12xuedev.com/abc", "name": "附件1" }, ...... ] } ``` - error ```json { "ret": -1, "msg": "参数错误" } ``` **返回参数说明** |参数名|类型|说明| |---|---|---| |ret |int |状态码 0:成功| |msg |string |状态消息 ok:成功| |zymc|string|ftp.12xuedev.com/exercises/2016/02/23/14562075164352_small.jpg\" data-latex=\"{a}^{2}+{b}^{2}={c}^{2}\"/>-本区",| |zymc|string|ftp.12xuedev.com/exercises/2016/02/23/14562075164352_small.jpg\" data-latex=\"{a}^{2}+{b}^{2}={c}^{2}\"/>-本区",| --: 该接口最后修订时间:2017-09-05 09:53:48 * * * * *