主要使用场景:
获取接口访问凭证:accessToken
url | https://opengate.huijiaoyun.com/portal/api/getcontentlist |
请求方式 | POST |
格式 | json |
是否需要鉴权 | 是 |
请求数限制 | 否 |
接口方向 | 第三方应用>开放平台 |
序号 | 字段名 | 约束 | 位置 | 类型 | 长度 | 说明 |
---|---|---|---|---|---|---|
1 |
schoolid |
必选 |
Body(json) |
string |
- |
学校id |
2 |
total |
可选 |
Body(json) |
string |
- |
返回总数 |
2 |
categoryid |
可选 |
Body(json) |
string |
- |
类别id |
3 |
result |
必选 |
Body(json) |
string |
- |
返回信息 |
3 |
categoryname |
可选 |
Body(json) |
string |
- |
类别名称 |
4 |
id |
可选 |
Body(json) |
string |
- |
资讯id |
5 |
isshow |
可选 |
Body(json) |
string |
- |
是否显示 |
6 |
page |
可选 |
Body(json) |
string |
- |
页数 |
7 |
pagesize |
可选 |
Body(json) |
string |
- |
一页的数量 |
8 |
orderby |
可选 |
Body(json) |
string |
- |
排序字段 |
9 |
order |
可选 |
Body(json) |
string |
- |
desc,asc,升序还是降序 |
序号 | 字段名 | 约束 | 类型 | 长度 | 说明 |
---|---|---|---|---|---|
1 |
retCode |
必选 |
string |
- |
返回码,000000,000012 |
请求报文: { "retCode": "000000", "total": 52, "result": [ { "id": 360580, "title": "交话费", "categoryid": 15998, "modeid": 1, "publishdate": 1531884788, "isshow": 1, "pic": null }, { "id": 360579, "title": "我的文章", "categoryid": 15994, "modeid": 1, "publishdate": 1531882342, "isshow": 1, "pic": "school/album/2018/0718/159/5b4eab56d5ee0.jpg_200x200.jpg" }, { "id": 360577, "title": "请客也有大忌", "categoryid": 15994, "modeid": 1, "publishdate": 1531880593, "isshow": 1, "pic": "school/album/2018/0718/237/5b4ea4786aab3.jpg_200x200.jpg" }, { "id": 360576, "title": "链接测试", "link": "http1://", "categoryid": 15994, "modeid": 3, "publishdate": 1531822475, "isshow": 1, "pic": null }, { "id": 360575, "title": "我是谁", "link": "http://baidu.com", "categoryid": 15994, "modeid": 3, "publishdate": 1531822378, "isshow": 1, "pic": null }, { "id": 360574, "title": "链接模型,点击即跳转", "link": "http://jd.com", "categoryid": 23157, "modeid": 3, "publishdate": 1531822288, "isshow": 1, "pic": null }, { "id": 360573, "title": "一个人吃多单调,弄不好会得罪人", "categoryid": 23156, "modeid": 2, "publishdate": 1531822241, "isshow": 1, "pic": "school/album/2018/0717/103/5b4dc00a446e2.jpg_200x200.jpg" }, { "id": 360572, "title": "吃有这么重要?吃真的很重要。", "categoryid": 23155, "modeid": 1, "publishdate": 1531822032, "isshow": 1, "pic": null }, { "id": 360571, "title": "春秋时,郑国和宋国打起来", "categoryid": 23154, "modeid": 1, "publishdate": 1531821910, "isshow": 1, "pic": "school/album/2018/0717/113/5b4dbf442ceec.jpg_200x200.jpg" }, { "id": 360570, "title": "那个电话", "categoryid": 15998, "modeid": 1, "publishdate": 1531821426, "isshow": 1, "pic": "school/album/2018/0717/242/5b4dbd5764be1.png_200x200.png" } ], "message": "调用成功" } 应答报文: { "retCode": "000000", "total": 52, "result": [ { "id": 360580, "title": "交话费", "categoryid": 15998, "modeid": 1, "publishdate": 1531884788, "isshow": 1, "pic": null }, { "id": 360579, "title": "我的文章", "categoryid": 15994, "modeid": 1, "publishdate": 1531882342, "isshow": 1, "pic": "school/album/2018/0718/159/5b4eab56d5ee0.jpg_200x200.jpg" }, { "id": 360577, "title": "请客也有大忌", "categoryid": 15994, "modeid": 1, "publishdate": 1531880593, "isshow": 1, "pic": "school/album/2018/0718/237/5b4ea4786aab3.jpg_200x200.jpg" }, { "id": 360576, "title": "链接测试", "link": "http1://", "categoryid": 15994, "modeid": 3,
序号 | 字段名 | 约束 | 类型 | 长度 | 说明 |
---|---|---|---|---|---|
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 |
消息体的关键字对应的值 |