Change user password(No original password is provided)
Change user password,Need SID, safekey, timeStamp, provide mobile phone number, new password (with clear text and MD5 encryption can be selected), return to the implementation of the instructions.
URL
https://api.eeo.cn/partner/api/course.api.php?action=modifyPasswordByTelephone
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 |
No |
To be deprecated at 1st May!Please use studentUid. Format: 00 country number - mobile phone number; note: mobile phone Numbers in mainland China do not include country .Choose one from uid. If telephone and uid are transmitted at the same time, the uid parameter shall prevail |
Mobile phone no |
For example: us mobile phone number 1 (800) 643-7676 filled 001-8006437676;The phone number of mainland China is 15800000001 |
password |
Yes(And md5pass 2 choose 1) |
No less than 6 |
new password |
Null |
md5pass |
Yes(And password 2 choose 1) |
32 bit md5 lower case |
New md5 password |
Null |
uid |
No |
Choose one from telephone. If uid and telephone are transmitted at the same time, the uid parameter shall prevail |
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=modifyPasswordByTelephone HTTP/1.1
www.eeo.cn
application/x-www-form-urlencoded
no-cache
SID=2339736&safeKey=8d3fb00ceddd29638e2d5dd12d69841d&timeStamp=1492793638&telephone=23692341030&password=123456&md5pass=
- 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 "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":"程序正常执行"
}
}
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 failure |
113 |
expression Mobile phone number is not registered |
114 |
expression Server exception |
134 |
expression Cell phone number is illegal |
137 |
expression The password is not 6 bits long |
227 |
expression There is no permission to change the login password of the mobile phone number (you need to add this member to the course or class section). |
400 |
Indicates that the request data is not valid. |