- 线上文档发布履历 更新时间:2023-11-06
- 快速入门
- 开发前必读
- 社会化、学徒制等培训项目对接API
- 企业职工线上培训项目对接API
- 常见问题
3、社会化、学徒制等培训项目-班级基本信息信息采集接口
POST
https://api.shzypxy.com/import/downstream/social/uploadClass
请求参数
Body 参数application/json
privateKey
string
私钥
classInfoBasic
array [object {5}]
班级(项目)列表
classCode
string
班级(项目)编号
shortName
string
班级(项目)简称
learnHour
integer
班级(项目)总学时
chapterList
array [object {4}]
章节(课程)列表
studentList
array [object {5}]
学员列表
示例
{
"privateKey": "occaecat est reprehenderit mollit",
"classInfoBasic": [
{
"classCode": "51",
"chapterList": [
{
"chapterCode": "69",
"chapterName": "住情导段积市争",
"pCode": "64",
"sort": 78
},
{
"chapterCode": "28",
"chapterName": "油严发战论着二",
"sort": 16,
"pCode": "40"
}
],
"studentList": [
{
"phone": "18102662402",
"identity": "10",
"name": "各出值部院",
"qq": 45,
"wechat": "consequat"
},
{
"phone": "18141765244",
"identity": "75",
"name": "八文难引",
"wechat": "ea amet dolore reprehenderit",
"qq": 41
},
{
"phone": "18176466876",
"identity": "14",
"name": "布也行新火型",
"qq": 66,
"wechat": "velit"
},
{
"phone": "13385886975",
"identity": "19",
"name": "酸命极指积",
"wechat": "elit sunt",
"qq": 13
}
],
"shortName": "命片新积",
"learnHour": 16
},
{
"classCode": "4",
"chapterList": [
{
"chapterCode": "2",
"chapterName": "许法采文装直",
"sort": 56,
"pCode": "23"
},
{
"chapterCode": "88",
"chapterName": "着红结定包",
"pCode": "51",
"sort": 35
},
{
"chapterCode": "21",
"chapterName": "少全马就",
"pCode": "58",
"sort": 29
},
{
"chapterCode": "86",
"chapterName": "千前次分",
"pCode": "82",
"sort": 10
}
],
"studentList": [
{
"phone": "19822417632",
"identity": "5",
"name": "前争温更",
"wechat": "Duis veniam",
"qq": 56
},
{
"phone": "19893711937",
"identity": "8",
"name": "科置子斗",
"wechat": "irure aliqua",
"qq": 95
},
{
"phone": "19807332677",
"identity": "98",
"name": "适任消标南族",
"wechat": "in",
"qq": 30
},
{
"phone": "18182223004",
"identity": "72",
"name": "力手日组矿",
"wechat": "irure dolor consequat",
"qq": 50
}
],
"learnHour": 36,
"shortName": "小天学学法"
},
{
"classCode": "25",
"chapterList": [
{
"chapterCode": "88",
"chapterName": "队这据少求除",
"sort": 21,
"pCode": "27"
},
{
"chapterCode": "36",
"chapterName": "县音进原安",
"pCode": "75",
"sort": 68
},
{
"chapterCode": "76",
"chapterName": "现广百好",
"pCode": "41",
"sort": 12
},
{
"chapterCode": "30",
"chapterName": "来电数复",
"pCode": "67",
"sort": 6
},
{
"chapterCode": "67",
"chapterName": "调近称子六飞不",
"sort": 32,
"pCode": "75"
}
],
"studentList": [
{
"phone": "19866235314",
"identity": "91",
"name": "看龙听院极",
"wechat": "sunt",
"qq": 12
}
],
"shortName": "最少周工",
"learnHour": 28
}
]
}
示例代码
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/uploadClass' \
--header 'Content-Type: application/json' \
--data-raw '{
"privateKey": "occaecat est reprehenderit mollit",
"classInfoBasic": [
{
"classCode": "51",
"chapterList": [
{
"chapterCode": "69",
"chapterName": "住情导段积市争",
"pCode": "64",
"sort": 78
},
{
"chapterCode": "28",
"chapterName": "油严发战论着二",
"sort": 16,
"pCode": "40"
}
],
"studentList": [
{
"phone": "18102662402",
"identity": "10",
"name": "各出值部院",
"qq": 45,
"wechat": "consequat"
},
{
"phone": "18141765244",
"identity": "75",
"name": "八文难引",
"wechat": "ea amet dolore reprehenderit",
"qq": 41
},
{
"phone": "18176466876",
"identity": "14",
"name": "布也行新火型",
"qq": 66,
"wechat": "velit"
},
{
"phone": "13385886975",
"identity": "19",
"name": "酸命极指积",
"wechat": "elit sunt",
"qq": 13
}
],
"shortName": "命片新积",
"learnHour": 16
},
{
"classCode": "4",
"chapterList": [
{
"chapterCode": "2",
"chapterName": "许法采文装直",
"sort": 56,
"pCode": "23"
},
{
"chapterCode": "88",
"chapterName": "着红结定包",
"pCode": "51",
"sort": 35
},
{
"chapterCode": "21",
"chapterName": "少全马就",
"pCode": "58",
"sort": 29
},
{
"chapterCode": "86",
"chapterName": "千前次分",
"pCode": "82",
"sort": 10
}
],
"studentList": [
{
"phone": "19822417632",
"identity": "5",
"name": "前争温更",
"wechat": "Duis veniam",
"qq": 56
},
{
"phone": "19893711937",
"identity": "8",
"name": "科置子斗",
"wechat": "irure aliqua",
"qq": 95
},
{
"phone": "19807332677",
"identity": "98",
"name": "适任消标南族",
"wechat": "in",
"qq": 30
},
{
"phone": "18182223004",
"identity": "72",
"name": "力手日组矿",
"wechat": "irure dolor consequat",
"qq": 50
}
],
"learnHour": 36,
"shortName": "小天学学法"
},
{
"classCode": "25",
"chapterList": [
{
"chapterCode": "88",
"chapterName": "队这据少求除",
"sort": 21,
"pCode": "27"
},
{
"chapterCode": "36",
"chapterName": "县音进原安",
"pCode": "75",
"sort": 68
},
{
"chapterCode": "76",
"chapterName": "现广百好",
"pCode": "41",
"sort": 12
},
{
"chapterCode": "30",
"chapterName": "来电数复",
"pCode": "67",
"sort": 6
},
{
"chapterCode": "67",
"chapterName": "调近称子六飞不",
"sort": 32,
"pCode": "75"
}
],
"studentList": [
{
"phone": "19866235314",
"identity": "91",
"name": "看龙听院极",
"wechat": "sunt",
"qq": 12
}
],
"shortName": "最少周工",
"learnHour": 28
}
]
}'
返回响应
🟢200成功示例
application/json
Body
c
integer
响应码
msg
string
响应信息
ctt
null
响应体
示例
{
"c": 0,
"msg": "string",
"ctt": null
}
🟢200私钥错误