Remove students and audit course(multiple)
Remove students and audit course(multiple),Need SID, safekey, timeStamp, provide 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 |
studentJson |
No |
To be deprecated at 1st May!Please use studentUidJson. If the array is not empty, the length is at least 1 and multiple accounts are allowed.Either studentUidJson or studentUidJson. In case of simultaneous transmission of studentJson and studentUidJson, studentUidJson shall prevail |
An array of accounts to delete |
Null |
└ Student 1 account |
Yes |
Format: 00 country number - mobile phone number;note: mobile phone Numbers in mainland China do not include country |
Student account |
For example: us mobile phone number 1 (800) 643-7676 filled 001-8006437676;The phone number of mainland China is 15800000001 |
└ Student 2 account |
No |
Format: 00 country number - mobile phone number; Note: mobile phone Numbers in mainland China do not include country Numbers |
Student account |
For example:American phone number 1 (800) 643-7676 is filled in 001-800643767;The phone number of mainland China is 15800000001 |
└ ······ |
No |
Format: 00 country - mobile phone number;Note: mobile phone Numbers in mainland China do not include country Numbers |
Student account |
For example: American phone number 1 (800) 643-7676 is filled in 001-8006437676;The phone number of mainland China is 15800000001 |
studentUidJson |
No |
If the array is not empty, the length of at least 1, can be multiple uids.Either studentUidJson or studentJson. If studentUidJson and studentJson are sent at the same time, studentUidJson shall prevail |
You need to delete the array of student uids |
Null |
└ Student 1 UID |
No |
Null |
Students in the UID |
Register the user UID returned by the user interface, for example: 1001001 |
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 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). |
114 |
Expression server exception. |
134 |
Expression cell phone number is illegal. |
144 |
Expression there is no such course under the agency. |
147 |
Expression no such course information. |
153 |
Expression the course has expired. |
155 |
Expression the data array must not be empty. |
162 |
Expression no phone number is under this course. |
369 |
Expression open class does not support this operation. |
400 |
Indicates that the request data is not valid |