服务端API



获取新闻分类列表

请求方式:GET(HTTPS)
请求地址:https://oapi.soke.cn/news/category/list
Query参数说明:

参数 类型 必须 说明
access_token String 是 应用access_token,2小时有效期
page Int 否 页码,默认从1开始
page_size Int 否 每页条数,最大100,最大100

返回结果:

{
    "code": "200",
    "status": "ok",
    "message": "success",
    "data": {
        "list": [
            {
                "uuid": "E9776691-0BD1-4F6D-9736-58A7A0AA6457",
                "title": "新闻分类",
                "parent_id": "1",
                "create_time": 1543475375000
            },
        ],
        "has_more": 1
    }
}

参数说明:

参数 类型 说明
data Array 返回的数据包
uuid String 新闻分类ID,最大长度36字符
title String 分类标题
parent_id String 父id
create_time Int 创建时间,Unix时间戳,单位毫秒
has_more Int 是否还有数据没返回:
1 还有
0 没有



获取新闻列表

请求方式:GET(HTTPS)
请求地址:https://oapi.soke.cn/news/news/list
Query参数说明:

参数 类型 必须 说明
access_token String 是 应用access_token,2小时有效期
category_id String 否 新闻分类ID
status Int 否 新闻状态:
0 未发布
1 已发布
2 已关闭
page Int 否 页码,默认从1开始
page_size Int 否 每页条数,最大100,最大100

返回结果:

{
    "code": "200",
    "status": "ok",
    "message": "success",
    "data": {
        "list": [
            {
                "uuid": "006078AC-FD16-48CE-872E-1E49EBF9BAD9",
                "title": "新闻标题",
                "category_id": "006078AC-FD16-48CE-872E-1E49EBF9BA11",
                "img_url": [
                    "https://cdndinglearning.eduto.com/dingc4cffb655c00d67f35c2f4657eb6378f/news/image/af7HZZis62PxJkGhz7heJSzCe6QC7ans1634025999927.jpeg",
                    "https://cdndinglearning.eduto.com/dingc4cffb655c00d67f35c2f4657eb6378f/news/image/8pKDWQWpjNXZhT5wYTDNDn2786A8ASpZ1634026006924.png",
                    "https://cdndinglearning.eduto.com/dingc4cffb655c00d67f35c2f4657eb6378f/news/image/23hER2M3w6eeW5HnPiD438k3Wai7k4cb1634026012167.png"
                ],
                "pic_count": "3",
                "object": "dingc4cffb655c00d67f35c2f4657eb6378f/course/video/dcEwKkkzXwe6sRNw1616662221322.mp4",
                "set_cover": 1,
                "introduction": "新闻摘要",
                "content": "新闻内容",
                "is_top": 1,
                "banner_type": "pc",
                "target_type": "course",
                "target_id": "006078AC-FD16-48CE-872E-1E49EBF912112",
                "status": "1",
                "pc_url": "https://saas.eduto.com/pcHome/dist/ssoLogin?appid=1D13B009-0482-4B80-B3C3-08CCE0C29E85&corpid=dingc4cffb655c00d67f35c2f4657eb6378f&gotoUrl=newsDetails&uuid=493DBC8B-6CBC-4D81-AD1A-8AC707697482",
				"mobile_url": "https://saas.eduto.com/mobile/dist/ssoLogin?appid=1D13B009-0482-4B80-B3C3-08CCE0C29E85&corpid=dingc4cffb655c00d67f35c2f4657eb6378f&gotoUrl=informationDetail&uuid=493DBC8B-6CBC-4D81-AD1A-8AC707697482",
                "create_time": 1616662221000,
                "update_time": 1616662225000
            },
        ],
        "has_more": 1
    }
}

参数说明:

参数 类型 说明
data Array 返回的数据包
list Array 返回的新闻列表
uuid String 素材唯一ID,最大长度36字符
title String 新闻标题
set_cover Int 是否使用封面图 1设置 0未设置
pic_count Int 1=>1张小图,2=>3张大图,3=>1张大图
img_url Array 图片地址
banner_img String 封面图地址
introduction String 新闻摘要
content String 新闻内容
is_top Int 是否置顶 1置顶 0不置顶
banner_type String banner类型 mobile:手机端 pc: pc端
target_type String 关联模块:competition:pk赛 exam:考试 course:课程 training:培训报名 learningMap:学习地图
target_id String 关联ID
status Int 新闻发布状态:
-1 删除
0 未发布
1 已发布
2 关闭
pc_url String pc端跳转链接
mobile_url String 移动端跳转链接
content String 新闻内容
create_time Int 创建时间,Unix时间戳,单位毫秒
update_time Int 更新时间,Unix时间戳,单位毫秒
create_time Int 创建时间,Unix时间戳,单位毫秒
update_time Int 更新时间,Unix时间戳,单位毫秒,如果status为-1或者2,此为最后操作时间
has_more Int 是否还有数据没返回:
1 还有
0 没有



获取新闻详情

请求方式:GET(HTTPS)
请求地址:https://oapi.soke.cn/news/news/info
Query参数说明:

参数 类型 必须 说明
access_token String 是 应用access_token,2小时有效期
uuid String 否 新闻ID

返回结果:

{
    "code": "200",
    "status": "ok",
    "message": "success",
    "data": {
        "uuid": "006078AC-FD16-48CE-872E-1E49EBF9BAD9",
        "title": "新闻标题",
        "category_id": "006078AC-FD16-48CE-872E-1E49EBF9BA11",
        "pic_count": "3",
        "banner_img": "",
        "introduction": "abc",
        "content": "<p><span style=\"font-size:24px;\">12344</span></p><p><span style=\"font-family:'楷体', '楷体_GB2312', SimKai;\">阿啥事扫地机安排时间单</span>片</p><p>机按时奥喷水<span style=\"font-family:'隶书', SimLi;\">电机藕片时</span>间</p><p>时间藕片的平均分圣诞节哦仿皮的审批局</p>",
        "img_url": [
            "https://cdndinglearning.eduto.com/dingc4cffb655c00d67f35c2f4657eb6378f/news/image/af7HZZis62PxJkGhz7heJSzCe6QC7ans1634025999927.jpeg",
            "https://cdndinglearning.eduto.com/dingc4cffb655c00d67f35c2f4657eb6378f/news/image/8pKDWQWpjNXZhT5wYTDNDn2786A8ASpZ1634026006924.png",
            "https://cdndinglearning.eduto.com/dingc4cffb655c00d67f35c2f4657eb6378f/news/image/23hER2M3w6eeW5HnPiD438k3Wai7k4cb1634026012167.png"
        ],
        "create_time": 1616662221000,
        "module": "news",
        "type": "news",
        "is_top": "1",
        "set_cover": "1",
        "is_banner": "0",
        "banner_type": "mobile",
        "target_type": "",
        "target_id": "",
        "click_num": "13",
        "img_url": "https://saas-eduto-bucket-cdn.eduto.com/dingc4cffb655c00d67f35c2f4657eb6378f/news/image/PX4Z5ijPeinHZdrtpjaK8ZnEiWXPi27A1692689207647.png",
        "pc_url": "https://saas.eduto.com/pcHome/dist/ssoLogin?appid=1D13B009-0482-4B80-B3C3-08CCE0C29E85&corpid=dingc4cffb655c00d67f35c2f4657eb6378f&gotoUrl=newsDetails&uuid=493DBC8B-6CBC-4D81-AD1A-8AC707697482",
        "mobile_url": "https://saas.eduto.com/mobile/dist/ssoLogin?appid=1D13B009-0482-4B80-B3C3-08CCE0C29E85&corpid=dingc4cffb655c00d67f35c2f4657eb6378f&gotoUrl=informationDetail&uuid=493DBC8B-6CBC-4D81-AD1A-8AC707697482",
        "update_time": 1616662225000
    }
}

参数说明:

参数 类型 说明
data Array 返回的数据包
uuid String 素材唯一ID,最大长度36字符
title String 新闻标题
category_id String 新闻分类UUID
pic_count Int 1=>1张小图,2=>3张大图,3=>1张大图
banner_img String 封面图地址
introduction String 新闻摘要
content String 新闻内容
img_url Array 图片地址
create_time Int 创建时间,Unix时间戳,单位毫秒
module String 关联模块
type String 类型
is_top Int 是否置顶 1置顶 0不置顶
set_cover Int 是否使用封面图 1设置 0未设置
banner_type String banner类型 mobile:手机端 pc: pc端
target_type String 关联模块:competition:pk赛 exam:考试 course:课程 training:培训报名 learningMap:学习地图
target_id String 关联ID
click_num Int 阅读数量
pc_url String pc端跳转链接
mobile_url String 移动端跳转链接
update_time Int 更新时间,Unix时间戳,单位毫秒,如果status为-1或者2,此为最后操作时间