Modify Course Teacher

To modify course teacher,please pass SID, safeKey, timeStamp, course ID and teacher's UID. The data returned includes class ID and instructions after the API implementation.

Note: Teachers of unstarted lessons in the course will be changed to the new set teacher.

URL

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

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
teacherUid Yes Null The teacher UID Register the user UID returned by the user interface

Response Data

Key Type Sample Value Meaning
data array [] Returns an array of Data information
└ data return information 1 object Returns the section information
  └ classId number 1369235 Class ID
  └ errno number 1 Error code
  └ error string "Normal execution" Error list
└ data return information 2 object Returns the section information
  └ classId number 1369235 Class ID
  └ errno number 1 Error code
  └ error string "Normal execution" Error list
└ ······ object Returns the section information
  └ classId number ··· Class ID
  └ 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

  • HTTP request
POST /partner/api/course.api.php?action=modifyCourseTeacher 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=modifyCourseTeacher"
    

Response Sample(The normal return json packet example)

{
  "data": [
    {
      "classId": "1395045",
      "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.
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.
146 The course is finished.
147 There is no information about the course.
149 The course has been deleted.
153 The course is expired and cannot be edited.
172 Course students cannot be set as teachers.
173 Course auditing students cannot be set as teachers.
187 Students in the lesson cannot be set as teachers.
188 There is no unstarted lessons.
189 Failed to change teachers of the lessons in the course.
190 The course has not been created completely.
324 Failed to add the teacher of the lesson to the teacher list.
328 The co-teacher of the lesson cannot be set as the teacher.
369 Do not support to operate this type of courses and lessons(public course).
387 The teacher has been deactivated.
400 The requested data is illegal.
466 The lesson was created in the ClassIn LMS and cannot be edited via API. Please edit in the ClassIn LMS.
805 The teacher is out of use.
884 The teacher's account has been deleted by the user.

results matching ""

    No results matching ""