Edit teacher
Edit teacher,You need the SID, safekey, timeStamp, the relationship ID 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.
URL
https://api.eeo.cn/partner/api/course.api.php?action=editTeacher
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 |
st_id |
No |
Null |
The ID of the teacher and the school |
Null |
teacherUid |
No |
Either teacherUid or st_id here |
teacher's UID |
if passed with st_id together,then use st_id |
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 |
Sample
POST /partner/api/course.api.php?action=editTeacher HTTP/1.1
www.eeo.cn
application/x-www-form-urlencoded
no-cache
SID=2339736&safeKey=51cf7854e932de0df9f37fa7dcbf463c&timeStamp=1492871773&st_id=16615&teacherName=&Filedata=
- 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 "st_id=14165" \
-d "teacherName=dan" \
"https://api.eeo.cn/partner/api/course.api.php?action=editTeacher"
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). |
103 |
expression failed to put the image in the server. |
104 |
expression operation failure(An unknown error). |