top
关闭

开发者登录

主要使用场景:

1、错题—详情

前置条件

获取接口访问凭证:accessToken

请求说明

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

参数说明

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

1

id

必选

Body(json)

string

-

错题ID

2

platformcode

必选

Body(json)

string

-

平台编码

3

personid

必选

Body(json)

string

-

用户ID

返回说明

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

1

code

可选

string

-

返回状态

2

message

可选

string

-

返回消息

3

runtime

可选

string

-

执行时间

4

cache

可选

string

-

是否缓存

5

result

可选

json

-

返回结果集

5.1

list

可选

string

-

内容集合

5.1.01

id

可选

string

-

唯一标识id

5.1.02

gradeid

可选

string

-

年级id

5.1.03

titleid

可选

string

-

非平台错题唯一标识

5.1.05

sourceid

可选

string

-

来源应用ID

5.1.06

sourcetypeid

可选

string

-

内容来源ID

5.1.07

difficultyid

可选

string

-

难度id

5.1.08

typeid

可选

string

-

题目类型ID

5.1.09

title

可选

string

-

标题

5.1.10

titlepics

可选

string

-

标题图片

5.1.11

questions

可选

string

-

正确答案

5.1.12

contents

可选

string

-

选项集合

5.1.12.1

options

可选

string

-

选项

5.1.12.2

yess

可选

string

-

是否正确答案

5.1.12.3

orderby

可选

string

-

排序

5.1.13

analyse

可选

string

-

解析内容

5.1.14

analysepics

可选

string

-

解析内容图片

5.1.15

tags

可选

string

-

题目标签

5.1.15.1

id

可选

string

-

标签id

5.1.15.2

name

可选

string

-

标签名称

5.1.16

mymark

可选

string

-

我的备注

5.1.17

addtime

可选

string

-

错题创建的时间戳

5.1.18

myquestions

可选

string

-

我的答案

5.1.19

iscreate

可选

string

-

0同步 1平台自建 2应用自建同步

5.1.20

isknow

可选

string

-

1:掌握 0未掌握

5.1.21

flawsweeperid

可选

string

-

错题本ID

5.1.22

myquestionspath

可选

string

-

“我的答案”的图片路径

5.1.23

questionspath

可选

string

-

“正确答案”的图片路径

5.2

hosts

可选

string

-

错题本平台地址

示例

							请求报文:
http://flawsweeper.t.huijiaoyun.com/index.php?r=openapi/fs/info&access_token=xxxxx&id=xx&platformcode=xx&personid=xx

应答报文:
{
    "code": "000000",
    "message": "请求成功",
    "runtime": "0.03639",
    "cache": "false",
    "result": {
        "page": "1",
        "pagesize": "10",
        "count": 1,
        "lists": [
            {
            "id": 6,
            "gradeid" : "年级ID",
            "titleid" : "题目唯一标识",
            "subjectid" : "学科ID",
            "sourceid" : "来源方ID",
            "sourcetypeid" : "来源方类型ID",
            "difficultyid" : "难易ID",
            "typeid" : "题型ID",
            "title" : "标题",
            "titlepics" : {"1.jpg","2.jpg"},
            "questions" : "正确答案",
            "contents" : {"1":"选项1","2":"选项2"},
            "analyse " : "解析内容",
            "analysepics" : "解析内容",
            "tags" : "题目标签",
            "mymark" : "我的备注",
            "addtime" : "错题创建的时间戳",
            }
        ]
    }
}
						

参数说明

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

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

消息体的关键字对应的值