请求方式: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",
"click_num": "300",
"publish_time": 1758006713000,
"create_dept_user_id": "1111111",
"create_dept_user_name": "张三",
"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,此为最后操作时间 |
| publish_time | Int | 发布时间,Unix时间戳,单位毫秒 ,未发布为0 |
| click_num | Int | 浏览量 |
| create_dept_user_id | String | 创建人id |
| create_dept_user_name | String | 创建人姓名 |
| 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,此为最后操作时间 |
请求方式:GET(HTTPS)
请求地址:https://oapi.soke.cn/news/user/list
Query参数说明:
| 参数 | 类型 | 必须 | 说明 |
|---|---|---|---|
| access_token | String | 是 | 应用access_token,2小时有效期 |
| target_id | String | 是 | 新闻列表返回UUID,最大长度36字符 |
| start_time | Int | 否 | 新闻指派或者添加选修时间的查询起始时间,Unix时间戳,单位毫秒(时间和userid条件不能全部为空) 注意:开始时间与当前时间差不能大于365天 |
| end_time | Int | 否 | 新闻指派或者添加选修时间的查询结束时间,Unix时间戳,单位毫秒(时间和userid条件条件不能全部为空) 注意:起始与结束时间差不超7天 |
| userid_list | String | 否 | 员工在企业内的UserID列表,多个UserId用英文逗号隔开(时间和userid条件不能全部为空) |
| page | Int | 否 | 页码,默认从1开始 |
| page_size | Int | 否 | 每页条数,默认100,最大100 |
返回结果:
{
"code": "200",
"status": "ok",
"message": "success",
"data": {
"has_more": 0,
"list": [
{
"target_id": "7A84C3E0-8564-4C80-BE5A-111111222",
"dept_user_id": "12121212121212",
"create_time": 1785166732000,
"click_num": "10",
"last_review_time": "1785166732000",
"dept_names": "技术部"
}
]
}
}
参数说明:
| 参数 | 类型 | 说明 |
|---|---|---|
| data | Array | 返回的数据包 |
| list | Array | 返回的用户列表 |
| dept_user_id | String | 用户ID,最大长度64字符 |
| target_id | String | 新闻UUID,最大长度36字符 |
| click_num | Int | 浏览新闻的次数 |
| last_review_time | Int | 最后一次浏览时间,Unix时间戳,单位毫秒,未浏览值为0 |
| create_time | Int | 指派或加入时间,Unix时间戳,单位毫秒 |
| dept_names | String | 学员所在部门 |
| has_more | Int | 是否还有数据没返回: 1 还有 0 没有 |