主要使用场景:
获取接口访问凭证:accessToken
url | https://opengate.huijiaoyun.com/space/api/score/StudentGetScoreData |
请求方式 | GET |
格式 | json |
是否需要鉴权 | 是 |
请求数限制 | 否 |
接口方向 | 第三方应用>开放平台 |
序号 | 字段名 | 约束 | 位置 | 类型 | 长度 | 说明 |
---|---|---|---|---|---|---|
1 |
studentid |
必选 |
Body(json) |
string |
- |
学生personid |
2 |
page |
可选 |
Body(json) |
int |
- |
页码 |
3 |
pagesize |
可选 |
Body(json) |
int |
- |
每页条数 |
序号 | 字段名 | 约束 | 类型 | 长度 | 说明 |
---|---|---|---|---|---|
1 |
code |
可选 |
string |
- |
返回状态码 |
2 |
message |
可选 |
string |
- |
返回消息 |
3 |
result |
可选 |
string |
- |
返回结果 |
3.1 |
total |
可选 |
string |
- |
结果总数 |
3.2 |
lists |
可选 |
string |
- |
成绩列表 |
请求报文: http://www.t.huijiaoyun.com/index.php?r=api/score/StudentGetScoreData&studentid=c4c6224722c64f2e880796f920930e31&page=1&pagesize=10 应答报文: {"code":"000000","message":"\u67e5\u8be2\u6210\u529f","result":{"lists":[{"score":{"scoreid":408,"subject":["\u8bed\u6587","\u6570\u5b66","\u82f1\u8bed","\u8bc4\u4ef7","\u7269\u7406","\u5316\u5b66","\u751f\u7269","\u8bc4\u4ef7","\u6392\u540d"],"title":"\u6d4b\u9a8c\u6210\u7ee9-2","publish":1,"teacherid":"ef84cb7cbc56419aad2ba5d14a9a3375","teachername":"\u8303\u8001\u5e08","classid":"3a4b402f10d6432190b8c18b3af90fe7","classname":"\u4e00\u5e74\u7ea7[1]\u73ed","inputtime":1532673471,"publishtime":1532673480,"isconfirm":"-1"},"scorelist":{"\u59d3\u540d":"\u5c0f\u71d5\u5b50","\u5b66\u751fID":"c4c6224722c64f2e880796f920930e31","\u8d26\u53f7":"xiaoyan","\u8bed\u6587":60,"\u6570\u5b66":66,"\u82f1\u8bed":0,"\u8bc4\u4ef7":"\u4e19","\u7269\u7406":"C","\u5316\u5b66":"B","\u751f\u7269":"C","\u6392\u540d":3,"scoreviewid":5001}},{"score":{"scoreid":407,"subject":["\u8bed\u6587","\u6570\u5b66","\u82f1\u8bed","\u8bc4\u4ef7"],"title":"\u6d4b\u9a8c\u6210\u7ee9","publish":1,"teacherid":"ef84cb7cbc56419aad
序号 | 字段名 | 约束 | 类型 | 长度 | 说明 |
---|---|---|---|---|---|
1 |
msgType |
必选 |
String |
10 |
消息类型,此时固定为:text |
1.1 |
text |
必选 |
Json |
- |
text消息体 |
1.1.1 |
content |
必选 |
String |
消息内容 |
{ "msgtype": "text", "text": { "content": "zhxy msg text test 12" } }
序号 | 字段名 | 约束 | 类型 | 长度 | 说明 |
---|---|---|---|---|---|
1 |
msgType |
必选 |
String |
10 |
消息类型,此时固定为:link |
2 |
link |
必选 |
Json |
- |
link消息体 |
2.1 |
pcUrl |
必选 |
String |
PC端消息点击链接地址 |
|
2.2 |
appUrl |
必选 |
String |
移动客户端点击消息时跳转到的H5地址 |
|
2.3 |
title |
必选 |
String |
消息标题 |
|
2.4 |
busiId |
必选 |
String |
对应业务的id |
|
2.5 |
content |
必选 |
String |
消息描述 |
|
2.6 |
picUrl |
必选 |
String |
图文消息的图片链接,支持JPG、PNG格式,较好的效果为大图640*320,小图80*80。如不填,在客户端不显示图片 |
{ "msgtype": "link", "link": { "pcUrl": "http://www.baidu.com", "appUrl": "http://www.baidu.com", "picUrl": "http://xxx.yyy.com/zzz.jpg", "content": "百度一下", "title": "百度", "busiId":"AQWER1234" } }
序号 | 字段名 | 约束 | 类型 | 长度 | 说明 |
---|---|---|---|---|---|
1 |
msgType |
必选 |
String |
10 |
消息类型,此时固定为:oa |
2 |
busiId |
必选 |
String |
- |
该条oa消息在业务系统对应的id |
3 |
pcUrl |
必选 |
String |
消息点击链接地址 |
|
4 |
appUrl |
必选 |
String |
移动客户端点击消息时跳转到的H5地址 |
|
5 |
oa |
必选 |
Json |
- |
oa类型消息体 |
5.1 |
head |
必选 |
Json |
255 |
消息头部Json |
5.1.1 |
text |
必选 |
String |
255 |
消息的头部标题 |
5.1.2 |
bgColor |
可选 |
String |
消息头部的背景颜色。长度限制为8个英文字符,其中前2为表示透明度,后6位表示颜色值。不要添加0x。默认值:FFCC0000 |
|
5.2 |
body |
可选 |
Json |
消息体 |
|
5.2.1 |
title |
可选 |
String |
消息体的标题 |
|
5.2.2 |
content |
可选 |
String |
消息体的正文 |
|
5.2.3 |
imageUrl |
可选 |
String |
消息体中的图片url |
|
5.2.4 |
fileCount |
可选 |
String |
自定义的附件数目。此数字仅供显示,不作验证 |
|
5.2.5 |
author |
可选 |
String |
自定义的作者名字 |
|
5.2.6 |
form |
可选 |
Json数组 |
消息体的表单,最多6个 |
|
5.2.7 |
key |
可选 |
String |
消息体的关键字 |
|
5.2.8 |
value |
可选 |
String |
消息体的关键字对应的值 |