URL #
https://root_url/partner/api/course.api.php?action=delCourseGroup
HTTP Request Methods #
- POST
Coding Format #
- UTF-8
Request Data #
Key | Bắt buộc | More restrictions | illustrate | Rules |
---|---|---|---|---|
SID | Bắt buộc | — | ID của trường | Xem dữ liệu này tại Trang quản lý classin.com trong mục API |
safeKey | Bắt buộc | Fixed 32 all lowercase characters | Khóa bảo mật xác thực trường học | safeKey=MD5(SECRET+timeStamp) |
timeStamp | Bắt buộc | — | Theo Unix Epoch timestamp & có hiệu lực trong vòng 20 phút | Thời gian UNIX Epoch là số giây đã trôi qua kể từ 00:00:00 (giờ chuẩn quốc tế) vào ngày 1 tháng 1 năm 1970 |
courseId | Bắt buộc | — | Course ID | — |
groupId | Bắt buộc | — | Group Id | — |
Response Data #
Key | Định dạng | Phản hồi | Ý nghĩa |
---|---|---|---|
error_info | object | Return message object | |
└ errno | number | 1 | Error code |
└ error | string | “Program normal execution” | Error list |
Sample #
- HTTP Request
POST /partner/api/course.api.php?action=delCourseGroup HTTP/1.1
Host: www.eeo.cn
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
SID=1234567&safeKey=5458edceccc78c6698de624e94364285&timeStamp=1493026245&courseId=176465&groupId=139
- Shell cURL analog request instruction
curl -H "Content-Type: application/x-www-form-urlencoded" -X "POST" \
-d "SID=1234567" \
-d "safeKey=c8e0b0e20c95c3adba9f263e04c598e7" \
-d "timeStamp=1637133036" \
-d "courseId=176465" \
-d "groupId=139" \
"https://root_url/partner/api/course.api.php?action=delCourseGroup"
Response Sample(The normal return json
packet example) #
{
"error_info": {
"errno": 1,
"error": "程序正常执行"}
}
Error Code | Description |
---|---|
1 | Thành công |
100 | Parameters sai định dạng hoặc không hoàn chỉnh |
102 | Không có quyền thao tác (Xác thực bảo mật thất bại) |
104 | Số điện thoại chưa được đăng ký tài khoản |
890 | Thiết lập phân nhóm thất bại |
893 | Thao tác thất bại. Phân nhóm không tồn tại |