Restar teacher
Restar teacher,you need send SID,safekey,timeStamp,teacher mobile phone no,teacher UID。Returns the result of the execution。Pay attention to:Chinese mainland mobile phone number does not fill in the country number, otherwise the prompt is illegal.
URL
https://api.eeo.cn/partner/api/course.api.php?action=restartUsingTeacher
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 |
telephone |
Yes |
Format is:00 Country code-Mobile number;Mainland China mobile phone number does not write country number, the first number of phone number can't is 0 |
mobile Numbers |
Example:American mobile number 1 (800) 643-7676 send 001-8006437676;Chinese Mainland mobile Numbers send 13701237634 |
teacherAccount |
No |
To be deprecated at 1st May!Please use teacherUid. Format for :00 Countries number -Mobile phone no; Pay attention to:China's mobile phone Numbers do not include country Numbers and teacherUid choose one of two,tTeacherAccount and teacherUid are passed simultaneously,The teacherUid parameter takes precedence |
The teacher's cell phone number |
For example:American mobile number 1 (800) 643-7676 send 001-8006437676;china mobile number you send 15800000001 |
teacherUid |
No |
or teacherAccount,If teacherUid is passed to teacherAccount at the same time, the teacherUid parameter shall prevail |
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 |
The error code |
└ error |
string |
"Normal execution" |
Error details |
Sample
POST /partner/api/course.api.php?action=restartUsingTeacher HTTP/1.1
www.eeo.cn
application/x-www-form-urlencoded
no-cache
SID=2339736&safeKey=8d3fb00ceddd29638e2d5dd12d69841d&timeStamp=1492793638&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 "teacherUid=1001001" \
"https://api.eeo.cn/partner/api/course.api.php?action=restartUsingTeacher"
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). |
104 |
Expression operation failed (unknown error). |
114 |
Expression server exception. |
122 |
Expression the format of the teacher account is incorrect |
136 |
Expression there is no teacher under the organization, please add the teacher under the school |
400 |
Expression request data is not valid |
800 |
Expression the teacher was suspended |