- 线上文档发布履历 更新时间:2023-11-06
- 快速入门
- 开发前必读
- 社会化、学徒制等培训项目对接API
- 企业职工线上培训项目对接API
- 常见问题
4、社会化、学徒制等培训项目-班级行为信息-学时信息采集接口
POST
https://api.shzypxy.com/import/downstream/social/uploadClassHourBehavior
请求参数
Header 参数
Content-Type
string
可选
Body 参数application/json
privateKey
string
私钥
classHourBasic
array [object {6}]
班级(项目)学时列表
classCode
string
班级(项目)编号
studentName
string
学员姓名
phone
string
学员手机号
identity
string
学员身份证号
loginList
array [object {4}]
上线时间列表
activityList
array [object {2}]
活跃度列表
示例
{
"privateKey": "xxxx ",
"classHourBasic": [
{
"classCode": 211012006193,
"studentName": "张蕊",
"phone": "18595579101",
"identity": "xxxxxxx",
"activityList": [{
"activityDetection":1,
"activityTime":1,
}],
"loginList": [
{
"startTime": 1658714032752,
"endTime": 1658714033649,
"ip": "1.199.36.159"
}
]
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.shzypxy.com/import/downstream/social/uploadClassHourBehavior' \
--header 'Content-Type: application/json' \
--data-raw '{
"privateKey": "xxxx ",
"classHourBasic": [
{
"classCode": 211012006193,
"studentName": "张蕊",
"phone": "18595579101",
"identity": "xxxxxxx",
"activityList": [{
"activityDetection":1,
"activityTime":1,
}],
"loginList": [
{
"startTime": 1658714032752,
"endTime": 1658714033649,
"ip": "1.199.36.159"
}
]
}
]
}'
返回响应
🟢200成功示例
application/json
Body
c
integer
响应码
msg
string
响应信息
ctt
array [object]
响应体
示例
{
"c": 0,
"msg": "执行成功",
"ctt": []
}
🟢200私钥错误
修改于 2023-11-16 08:00:41