Students、attend are removed from the course(single)
Remove student/audit under the course (single), need SID, safekey, timeStamp, course ID of the course, identification of student or audit, need to add account number, student UID.Returns the description after execution.
URL
https://api.eeo.cn/partner/api/course.api.php?action=delCourseStudent
HTTP Request Methods
- POST
Coding format
- UTF-8
Request data
key | Required | More Restrictions | Instructions | Description |
---|---|---|---|---|
SID | Yes | Null | School ID | It is available through the eeo.cn application |
safeKey | Yes | Fixed 32-bit all lowercase characters | School authentication security key | safeKey=MD5(SECRET+timeStamp) |
timeStamp | Yes | Null | imestamp used by safeKey | Unix Epoch timeStamp is the number of seconds passed by 00:00 (world standard time) on January 1, 1970 |
courseId | Yes | Null | course ID | Null |
identity | Yes | Null | Student and audit identification(1 student,2 audit) | Null |
studentUid | Yes | NULL | Student UID that needs to be removed | Register the user UID returned by the user interface |
Response data
key | Type | Sample value | meaning |
---|---|---|---|
error_info | object | Return message object | |
└ errno | number | 1 | Error code |
└ error | string | "Normal execution" | Error list |
Sample
- HTTP request
POST /partner/api/course.api.php?action=delCourseStudent HTTP/1.1
Host: www.eeo13.test
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
SID=1002289&safeKey=ee982747b6b6333cdc40644b06b7c57d&timeStamp=1493030859&courseId=1431&identity=1&studentAccount=18516980114
Shell cURL analog request instruction
curl -H "Content-Type: application/x-www-form-urlencoded" -X "POST" \ -d "SID=1234567" \ -d "safeKey=0f7781b3033527a8cc2b1abbf45a5fd2" \ -d "timeStamp=1484719085" \ -d "courseId=442447" \ -d "identity=1" \ -d "studentUid=1001001" \ "https://api.eeo.cn/partner/api/course.api.php?action=delCourseStudent"
Response sample(The normal return json
packet example)
{
"error_info": {
"errno": 1,
"error": "程序正常执行"
}
}
Error code instruction
Error code | Instruction |
---|---|
1 | Expression successful execution. |
100 | Expression parameter not all or error. |
102 | Expression dont have permissions(Security verification failed). |
104 | Expression operation failure(Unknown error). |
106 | Expression there is no data available. |
114 | Expression server exception. |
144 | Expression no such course information. |
147 | Expression no such course information. |
149 | Expression courses have been deleted. |
153 | Expression the course has expired. |
369 | Expression open class does not support this operation. |
400 | means that the request data is not valid |