Change course teacher

Change course teacher,You need SID, safekey, timeStamp, course ID, teacher's phone number,Teacher UID, return data including class ID, after the implementation of the instructions.Note: all classes not started under the course are changed to this 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 instruction

Error code Instruction
1 Expression successful execution.
100 Expression parameter not all or error.
102 Expression without permission(Security verification failed).
104 Expression operation failure(An unknown error).
114 Expression server exception.
134 Expression cell phone number is illegal.
136 Expression there is no teacher under the agency.
144 Expression no such course information.
146 Expression the course is over.
147 Expression no such course information.
149 Expression courses have been deleted.
153 Expression the course has expired.
172 Expression The students under the course cannot be added to the teacher.
173 Expression The audit of the course cannot be added to the teacher.
187 Expression This is the student account in this section. You can't make him a teacher.
188 Expression There are no unopened class.
189 Expression the teacher failed to change the class.
190 Expression this course is not completed.
324 Expression class teacher fail to join the teacher list.
328 Expression The teaching assistant cannot be added to the teacher.
369 Expression open class does not support this operation.
387 indicates that the teacher has been suspended.
400 Indicates that the request data is not valid
805 Means the teacher is out of use

results matching ""

    No results matching ""