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

  • POST

Coding format

  • UTF-8

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 uid. 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
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 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

  • HTTP request
POST /partner/api/course.api.php?action=modifyPassword HTTP/1.1
Host: www.eeo.cn
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 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 server exception
137 expression the password is not 6 bits long
138 expression original password error
400 Indicates that the request data is not valid.

results matching ""

    No results matching ""