Remove Course Students/Auditing Students(Multiple)
To remove multiple course students and course auditing students,the API call requires SID, safekey, timeStamp, course ID, student or audit identification (1 is students, 2 is auditing), the number of account array that needs to be deleted, the list of accounts that need to be deleted, etc. Returns the description after each account is executed.
URL
https://api.eeo.cn/partner/api/course.api.php?action=delCourseStudentMultiple
HTTP Request Methods
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 attend) |
Null |
studentUidJson |
Yes |
If the array is not empty, the length is at least 1, and multiple UIDs can be used |
Student uid array needs to be deleted |
Null |
└ Student 1 UID |
Yes |
Null |
Students in the UID |
Register the user UID returned by the user interface, for example: 1001001 |
└ Student 2 UID |
No |
Null |
Students in the UID |
Register the user UID returned by the user interface, for example: 1001002 |
└ ······ |
No |
Null |
Students in the UID |
Register the user UID returned by the user interface, for example: 1001003 |
Response Data
Key |
Type |
Sample Value |
Meaning |
data |
array |
[] |
Returns an array of data information |
└ data return information 1 |
object |
|
Return message object |
└ errno |
number |
1 |
Error code |
└ error |
string |
"Normal execution" |
Error list |
└ data return information 2 |
object |
|
Return message object |
└ errno |
number |
1 |
Error code |
└ error |
string |
"Normal execution" |
Error list |
└ ······ |
object |
|
Return message object |
└ errno |
number |
··· |
Error code |
└ error |
string |
··· |
Error list |
error_info |
object |
|
Return message object |
└ errno |
number |
1 |
Error code |
└ error |
string |
"Normal execution" |
Error list |
Sample
POST /partner/api/course.api.php?action=delCourseStudentMultiple HTTP/1.1
www.eeo.cn
application/x-www-form-urlencoded
no-cache
SID=2339736&safeKey=b3c832f1b7ae456c38e11320099beecb&timeStamp=1493726325&courseId=490583&identity=1&studentUidJson=["1001001"]
- 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 "studentUidJson=['1001001']" \
"https://api.eeo.cn/partner/api/course.api.php?action=delCourseStudentMultiple"
Response Sample(The normal return json
packet example)
{
"data": [
{
"errno": 1,
"error": "程序正常执行"
}
],
"error_info": {
"errno": 1,
"error": "程序正常执行"
}
}
Error Code Description
Error Code |
Description |
1 |
Successful execution. |
100 |
Incomplete or incorrect parameters. |
102 |
No permission(Security verification failed.). |
104 |
Operation failure(Unknown error). |
114 |
Server exception. |
134 |
Illegal mobile phone number. |
144 |
There is no such course in your institution. |
147 |
There is no information about the course. |
153 |
The course is expired and cannot be edited. |
155 |
Array data cannot be null. |
162 |
There is no such students in the course. |
369 |
Do not support to operate this type of courses and lessons(public course). |
400 |
The requested data is illegal. |