获取学员的打卡日记列表

拥有此API的权限集
打卡管理-查询

请求方式及url

  • 请求方式:POST
  • 请求头:Content-Type:application/json
  • 接口地址:https://api.xiaoe-tech.com/xe.elock.user_diary/1.0.0
  • 频率限制: 10秒3000次

在线调试工具

请求

响应

请求参数

参数名 必选 类型 说明
access_token string 专属token
activity _id string 打卡活动id
sort_type int 排序类型(按日记发表时间-publish_time排序),1-降序,0-升序
user_id string 学员的用户id
page_index int 页码
page_size int 每页条数

请求示例

 {
    "access_token": "xe_xxxxx",
    "activity _id": "ac_62d50e63008cd_mRBZXQvD",
    "sort_type": 0,
    "page_index": 1,
    "page_size": 2,
    "user_id": "u_6128588b23d07_e2kTYwYCZK"
}

返回参数

参数名 类型 说明
code int 返回码
msg string 返回信息
data object 返回数据
data.user_id string 学员用户id
data.wx_nickname string 学员微信昵称
data.wx_avatar string 学员微信头像
data.clock_nickname string 学员在打卡中的昵称
data.page_index int 当前页码
data.page_size int 每页数量
data.total_count int 学员日记总数
data.page_count array 总共多少页
data.activity_diary_list array 学员打卡日记列表

学员打卡日记列表data.activity_diary_list

参数名 类型 说明
content_type int 打卡日记内容类型,0-普通文本,1-AI语音测评打卡
text_content string/object 打卡日记文本,若content_type=1时,该字段类型为object类型
id string 日记id
clock_theme_id string 打卡活动下,日记的任务id
publish_time string 日记发表时间
file_records array 上传的微信文件数组,如ppt文件
img_urls array 学员上传的图片链接数组
theme_title string 日记任务的标题

上传的微信文件信息 file_records

参数名 类型 说明
name string 文件名称
size int 文件大小,单位:字节(B)
url string 文件链接
fileIconType string 文件类型,如pdf,word

打卡日记object text_content

参数名 类型 说明
total_score int 总分
fluency_score int 流利度分
integrity_score int 完整度分
accuracy_score int 准确度分
word_score array 每个单词的得分数组
word_score[].content string 单词内容
word_score[].total_score int 单词得分
word_score[].color string 单词颜色,normal-黑色,green-80分及以上绿色,red-60分以下红色

返回示例

当content_type=0时:

{
    "code": 0,
    "msg": "Success",
    "data": {
    "user_id": "u_6128588b23d07_e2kTYwYCZK",
    "wx_nickname": "星",
    "wx_avatar": "http://wechatavator-125xxxxxxx.file.myqcloud.com/app9mjxaz193015/image/compress/u_6128588b23d07_e2kTYwYCZK.png",
    "clock_nickname": "",
    "activity_diary_list": [
     {
        "content_type": 0,
        "text_content": "666666",
        "id": "d_62d50f37d5dab_KOHsBwaE",
        "clock_theme_id": "w_62d50edbc76aa_aZ5kdnZu",
        "publish_time": "2022-07-18 15:43:51",
        "file_records": [
         {
            "path": "wxfile://tmp_374bd2c97fb227f49a47fc648897d2b71aa16xxxxxxxx.pdf",
            "name": "0beb871ac31a49d1d34c88a3883002c6.pdf",
            "size": 3006097,
            "type": "file",
            "time": 1635261764,
            "fileIconType": "pdf",
            "fileType": "pdf",
            "id": "82065761c0f005c694e8ee4f318ea860",
            "uploadStatus": 1,
            "progress": "100%",
            "url": "https://littleclockproduct-125xxxxxxx.file.myqcloud.com/upload_img/eclock-file-u_6128588b23d07_e2kTYwYCZK-107429941658491229608.pdf",
            "originalUrl": "https://littleclockproduct-125xxxxxxx.file.myqcloud.com/upload_img/eclock-file-u_6128588b23d07_e2kTYwYCZK-107429941658491229608.pdf",
            "vid": "d667f89af66c49b04a9bd28f55a126f51658491236"
         }
         ],
        "img_urls": [
"http://littleclockproduct-125xxxxxxx.file.myqcloud.com/app9mjxaz193015/image/cHVuY2hDYXJkLWg1aW1nLXVfNjEyODU4OGIyM2QwN19lMmtUWXdZQ1pLLTc5NDk1NzQ1.jpeg",
"https://littleclockproduct-125xxxxxxx.file.myqcloud.com/upload_img/eclock-file-u_6128588b23d07_e2kTYwYCZK-313420911658198084647.jpg"
                    ],
        "theme_title": "作业1"
     }
     ],
    "page_index": 1,
    "page_size": 2,
    "total_count": 3,
    "page_count": 2
    }
}

当content_type=1时:

{
    "code": 0,
    "msg": "Success",
    "data": {
    "user_id": "u_6128588b23d07_e2kTYwYCZK",
    "wx_nickname": "星",
    "wx_avatar": "http://wechatavator-125xxxxxxx.file.myqcloud.com/app9mjxaz193015/image/compress/u_6128588b23d07_e2kTYwYCZK.png",
    "clock_nickname": "",
    "activity_diary_list": [
     {
        "content_type": 1,
        "text_content":  {
            "total_score": 81,
            "fluency_score": 98,
            "integrity_score": 100,
            "accuracy_score": 78,
            "word_score": [
             {
                 "content": "hello",
                 "total_score": 78,
                 "dp_message": 0,
                 "color": "normal",
                 "type": 0
             }
             ],
            "is_rejected": false,
            "except_info": "",
            "requestId": "1657593524193996364985850433536",
            "status": null
        },
        "id": "d_62d50f37d5dab_KOHsBwaE",
        "clock_theme_id": "w_62d50edbc76aa_aZ5kdnZu",
        "publish_time": "2022-07-18 15:43:51",
        "file_records": [
         {
            "path": "wxfile://tmp_374bd2c97fb227f49a47fc648897d2b71aa163e0xxxxxxxx.pdf",
            "name": "0beb871ac31a49d1d34c88a3883002c6.pdf",
            "size": 3006097,
            "type": "file",
            "time": 1635261764,
            "fileIconType": "pdf",
            "fileType": "pdf",
            "id": "82065761c0f005c694e8ee4f318ea860",
            "uploadStatus": 1,
            "progress": "100%",
            "url": "https://littleclockproduct-125xxxxxxx.file.myqcloud.com/upload_img/eclock-file-u_6128588b23d07_e2kTYwYCZK-107429941658491229608.pdf",
            "originalUrl": "https://littleclockproduct-125xxxxxxx.file.myqcloud.com/upload_img/eclock-file-u_6128588b23d07_e2kTYwYCZK-107429941658491229608.pdf",
            "vid": "d667f89af66c49b04a9bd28f55a126f51658491236"
         }
         ],
        "img_urls": [
"http://littleclockproduct-125xxxxxxx.file.myqcloud.com/app9mjxaz193015/image/cHVuY2hDYXJkLWg1aW1nLXVfNjEyODU4OGIyM2QwN19lMmtUWXdZQ1pLLTc5NDk1NzQ1.jpeg",
"https://littleclockproduct-125xxxxxxx.file.myqcloud.com/upload_img/eclock-file-u_6128588b23d07_e2kTYwYCZK-313420911658198084647.jpg"
                    ],
        "theme_title": "作业1"
     }
     ],
    "page_index": 1,
    "page_size": 2,
    "total_count": 3,
    "page_count": 2
    }
}

results matching ""

    No results matching ""