Remove course teacher
Remove the course teacher, need SID, safekey, timeStamp, course ID, teacher's phone number, teacher UID, return data including class ID, instruction after execution.If the teacher is removed from the course, the account cannot be included in the class that is not open under the course;After removing the teacher, the teacher is no longer shown in the teacher list in the eeo.cn course details, nor in the class group of the ClassIn client.
URL
https://api.eeo.cn/partner/api/course.api.php?action=removeCourseTeacher
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 |
No |
teacherUid |
Yes |
Null |
Teacher UID |
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
POST /partner/api/course.api.php?action=removeCourseTeacher HTTP/1.1
www.eeo.cn
application/x-www-form-urlencoded
no-cache
SID=2339736&safeKey=d8e6b1b7b55483ba93da7bc8e1d9514f&timeStamp=1493728253&courseId=523689&teacherUid=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=123456" \
-d "teacherUid=1001001" \
"https://api.eeo.cn/partner/api/course.api.php?action=removeCourseTeacher"
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(An unknown error). |
114 |
Represents a server exception |
122 |
Indicates incorrect format of teacher account |
136 |
Indicates that there is no teacher under the organization. Please add the teacher under the organization |
144 |
There is no such course under the organization |
147 |
Indicates that this course information is not available |
149 |
Indicates that the course has been deleted |
153 |
Indicates that the course has expired |
315 |
Failed to delete teacher |
316 |
Indicates that the teacher list does not exist |
317 |
Indicates that the teacher has an unfinished lesson |
369 |
The class/session type does not support this operation |
400 |
Indicates that the request data is not valid |