Edit teacher

Edit teacher,You need the SID, safekey, timeStamp, the UID for the teacher and the school, the name of the teacher, and the photo of the teacher, with the type of head in the binary stream type. Returns the description after execution.



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
teacherUid Yes teacherUid teacher's UID Use Register interface to get UID
teacherName Yes Null teacher name Null
Filedata No Binary stream Teacher's picture Null

Response data

key Type Sample value meaning
error_info object Return message object
└ errno number 1 The error code
└ error string "Normal execution" Error list


  • HTTP request
POST /partner/api/course.api.php?action=editTeacher HTTP/1.1
Host: root_url
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache

  • 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 "teacherUid=14165" \
    -d "teacherName=dan" \

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 Don't have permissions(Security verification failed).
103 Failed to upload the image to the server.
104 Operation failed (unknown error).
219 Teacher information does not exist.

results matching ""

    No results matching ""