Change user password
Change user password,need SID, safekey, timeStamp, the mobile phone number, the original password (MD5 encryption), the new password (you can choose the plaintext and MD5 encryption in one of the ways), and return the instructions after execution.
URL
https://api.eeo.cn/partner/api/course.api.php?action=modifyPassword
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 |
oldMd5pass |
Yes |
32 bit MD5 lower case |
The original MD5 password |
Null |
password |
Yes(And md5pass 2 choose 1) |
No less than 6 |
new password |
Null |
md5pass |
Yes(And md5pass 2 choose 1) |
32 bit MD5 lower case |
New MD5 password |
Null |
uid |
Yes |
Null |
User's 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 list |
Sample
POST /partner/api/course.api.php?action=modifyPassword HTTP/1.1
root_url
application/x-www-form-urlencoded
no-cache
SID=2339736&safeKey=8d3fb00ceddd29638e2d5dd12d69841d&timeStamp=1492793638&telephone=23692341020&oldMd5pass=e10adc3949ba59abbe56e057f20f883e&md5pass=e10adc3949ba59a
- 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 "telephone=12345678901" \
-d "oldMd5pass=e10adc3949ba59abbe56e057f20f883e" \
-d "md5pass=e10adc3949ba59abbe56e057f20f88232" \
"https://api.eeo.cn/partner/api/course.api.php?action=modifyPassword"
Response sample(The normal return json
packet example)
{
"error_info":{
"errno":"1",
"error":"程序正常执行"
}
}
Error Code Instruction
Error Code |
Instruction |
1 |
Successful execution. |
100 |
Incomplete or incorrect parameters. |
102 |
Don't have permissions(Security verification failed). |
104 |
Operation failed. |
113 |
The mobile phone number is not registered. |
114 |
Server exception. |
134 |
Illegal mobile phone number. |
137 |
Illegal password length(6-20 digits). |
138 |
Original password was wrong. |
400 |
The requested data is not valid. |