Đổi mật khẩu người dùng

Mục lục

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 #

  • POST

Coding format #

  • UTF-8

Request data #

keyRequiredMore RestrictionsInstructionsDescription
SIDYesNullSchool IDIt is available through the eeo.cn application
safeKeyYesFixed 32-bit all lowercase charactersSchool authentication security keysafeKey=MD5(SECRET+timeStamp)
timeStampYesNullimestamp used by safeKeyUnix Epoch timeStamp is the number of seconds passed by 00:00 (world standard time) on January 1, 1970
oldMd5passYes32 bit MD5 lower caseThe original MD5 passwordNull
passwordYes(And md5pass 2 choose 1)No less than 6new passwordNull
md5passYes(And md5pass 2 choose 1)32 bit MD5 lower caseNew MD5 passwordNull
uidYesNullUser’s UIDRegister the user UID returned by the user interface

Response data #

keyTypeSample valuemeaning
error_infoobjectReturn message object
└ errnonumber1The error code
└ errorstring“Normal execution”Error list

Sample #

  • HTTP request
POST /partner/api/course.api.php?action=modifyPassword HTTP/1.1
Host: root_url
Content-Type: application/x-www-form-urlencoded
Cache-Control: 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 CodeInstruction
1Successful execution.
100Incomplete or incorrect parameters.
102Don’t have permissions(Security verification failed).
104Operation failed.
113The mobile phone number is not registered.
114Server exception.
134Illegal mobile phone number.
137Illegal password length(6-20 digits).
138Original password was wrong.
400The requested data is not valid.