top
关闭

开发者登录

主要使用场景:

1、获取相关编号

前置条件

获取接口访问凭证:accessToken

请求说明

url https://opengate.huijiaoyun.com/flawsweeper/openapi/fs/config
请求方式 GET
格式 json
是否需要鉴权
请求数限制
接口方向 第三方应用>开放平台

参数说明

序号 字段名 约束 位置 类型 长度 说明

返回说明

序号 字段名 约束 类型 长度 说明

1

code

必选

string

-

返回状态

2

message

必选

string

-

返回消息

3

runtime

可选

string

-

执行时间

4

cache

可选

string

-

是否缓存

5

result

可选

json

-

返回结果

5.1

subject

可选

json

-

系统错题本名称集合

5.1.1

id

可选

string

-

系统错题本id对应创建错题本中错题本关联id

5.1.2

name

可选

string

-

名称

5.2

source

可选

string

-

错题应用来源,用于填写错题中的应用来源

5.2.1

id

可选

string

-

应用id

5.2.2

name

可选

string

-

应用名称

5.3

sourcetype

可选

string

-

错题内容来源集合

5.3.1

id

可选

string

-

错题内容来源id

5.3.2

name

可选

string

-

错题内容来源名称

5.4

difficulty

可选

string

-

错题难度集合

5.4.1

id

可选

string

-

错题难度id

5.4.2

name

可选

string

-

错题难易度名称

5.5

type

可选

string

-

错题类型集合

5.5.1

id

可选

string

-

错题类型id

5.5.2

name

可选

string

-

错题类型名称

5.6

grade_63

可选

string

-

63制年级集合

5.6.1

id

可选

string

-

63制年级id

5.6.2

name

可选

string

-

63制年级名称

5.7

grade_54

可选

string

-

54制年级集合

5.7.1

id

可选

string

-

54制年级id

5.7.2

name

可选

string

-

54制年级名称

示例

							请求报文:
http://flawsweeper.t.huijiaoyun.com/index.php?r=api/OpenFs/config

应答报文:
{
"code": "000000",
"message": "请求成功",
"runtime": "0.00619",
"cache": "true",
"result": {
    "subject": [
        {
        "id": 1,
        "name": "自定义"
        },
        {
        "id": 2,
        "name": "语文"
        },
        {
        "id": 3,
        "name": "数学"
        },
        {
        "id": 4,
        "name": "英语"
        },
        {
        "id": 5,
        "name": "物理"
        },
        {
        "id": 6,
        "name": "化学"
        },
        {
        "id": 12,
        "name": "思想品德"
        },
        {
        "id": 7,
        "name": "历史"
        },
        {
        "id": 8,
        "name": "地理"
        },
        {
        "id": 13,
        "name": "品德与生活"
        },
        {
        "id": 14,
        "name": "品德与社会"
        },
        {
        "id": 9,
        "name": "生物"
        },
        {
        "id": 10,
        "name": "思想政治"
        },
        {
        "id": 11,
        "name": "综合"
        },
        {
        "id": 15,
        "name": "历史与社会"
        },
        {
        "id": 16,
        "name": "体育"
        },
        {
        "id": 17,
        "name": "科学"
        },
        {
        "id": 18,
        "name": "美术"
        },
        {
        "id": 19,
        "name": "体育与健康"
        },
        {
        "id": 20,
        "name": "音乐"
        },
        {
        "id": 21,
        "name": "信息技术"
        },
        {
        "id": 22,
        "name": "通用技术"
        },
        {
        "id": 23,
        "name": "综合实践活动"
        },
        {
        "id": 24,
        "name": "健康(学前)"
        },
        {
        "id": 25,
        "name": "科学(学前)"
        },
        {
        "id": 26,
        "name": "社会(学前)"
        },
        {
        "id": 27,
        "name": "艺术(学前)"
        },
        {
        "id": 28,
        "name": "语言(学前)"
        },
        {
        "id": 29,
        "name": "科技制作活动"
        },
        {
        "id": 30,
     
						

参数说明

请求参数消息体-文本类
序号 字段名 约束 类型 长度 说明

1

msgType

必选

String

10

消息类型,此时固定为:text

1.1

text

必选

Json

-

text消息体

1.1.1

content

必选

String

消息内容

示例

{
	"msgtype": "text",
	"text": {
		"content": "zhxy msg text test 12"
	}
}
											

参数说明

请求参数消息体-link类
序号 字段名 约束 类型 长度 说明

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"
	}
}
											

参数说明

请求参数消息体-oa类
序号 字段名 约束 类型 长度 说明

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

消息体的关键字对应的值