To make a successful API call, please note that the virtual accounts should be the ones assigned to the SID. If the virtual accounts do not belong to the SID, the request fails.
URL #
https://api.eeo.cn/partner/api/course.api.php?action=modifyPasswordByTelephone
HTTP Request Methods #
- POST
Coding format #
- UTF-8
Request data #
Key | Required | More Restrictions | Instructions | Description |
SID | Yes | Null | School ID | It is available after applying for institution account in eeo.cn. |
safeKey | Yes | Fixed 32-bit all lowercase characters | School authentication security key | safeKey=MD5(SECRET+tim eStamp) |
timeStam p | Yes | Null | The current Unix Epoch timestamp within 20 minutes of calling interface time. | The Unix Epoch timeStamp is the number of seconds elapsed since 00:00:00 (world standard time) on January 1, 1970. |
password | Yes (Either transfer password or md5pass) | 6-20 digits. Error code will be reported if it does not meet the restriction. | New password | Null |
md5pass | Yes (Either transfer password or md5pass) | 32-bit MD5 lowercase | New MD5 encryption password | Null |
uid | Yes | User’s UID | User’s uid returned by registered user interface. |
Response data #
key | Type | Sample Value | Meaning |
error_info | object | Return information object | |
└ errno | number | 1 | Error code |
└ error | string | “The program executes normally” | Error details |
Sample #
- HTTP request
POST /partner/api/course.api.php?action=modifPasswordByTelephone HTTP/1.1
Host: www.eeo.cn
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
SID=2339736&safeKey=8d3fb00ceddd29638e2d5dd12d69841d&timeStamp=1492793638&uid=1001001&password=123456&md5pass=e10adc3949ba59abbe56e057f20f88232
- 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 "uid=1001001" \
-d "md5pass=e10adc3949ba59abbe56e057f20f88232" \
"https://api.eeo.cn/partner/api/course.api.php?action=modifyPasswordByTelephone"
Response sample(The normal return json
packet example) #
{
"error_info":{
"errno":"1",
"error":"The program executes normally"
}
}
Error Code Instruction #
Error code | Instruction |
1 | Executed successfully |
100 | Incomplete or incorrect parameters |
102 | No permission (security verification failed) |
104 | Operation failed |
113 | Mobile phone number has not been registered yet. |
114 | Server exception |
134 | Illegal mobile phone number |
137 | Illegal password length (6-20 digits) |
227 | You do not have permission to modify the login password of this user (you need to call the add student or add teacher interface) |
400 | The data request is illegal |