Remove Course Teacher

To remove a teacher from a course, please pass SID, safeKey, timeStamp, course ID, and teacher UID. Data returned includes class ID and instruction after execution. If a teacher is removed from a course, then the teacher does not appear in the unstarted lessons in the course. In the ClassIn management console, the removed teacher is not displayed in the list of course teachers on the course information page, nor in the class chat in the ClassIn client.

URL

https://api.eeo.cn/partner/api/course.api.php?action=removeCourseTeacher

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 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

  • HTTP Request
POST /partner/api/course.api.php?action=removeCourseTeacher HTTP/1.1
Host: www.eeo.cn
Content-Type: application/x-www-form-urlencoded
Cache-Control: 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 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.
122 The format of the teacher account is incorrect.
136 There is no such teacher in your institution. Please add the teacher to your institution.
144 There is no such course in your institution.
147 There is no information about the course.
149 The course has been deleted.
153 The course is expired and cannot be edited.
315 Failed to delete the teacher.
316 The teacher does not exist in the teacher list.
317 The teacher has unfinished lesson.
369 Do not support to operate this type of courses and lessons(public course).
400 The requested data is illegal.

results matching ""

    No results matching ""