Gets the login client key

Gets the login client key,Need SID, safekey, timeStamp, and provide a phone number and the effective length (the default is 86400 seconds), returns the login ClassIn client temporary secret key.if just need Wake up the ClassIn clientjust need splicing mobile number and secret key. if need ClassIn client and go into the classroom, to use returned secret key to splice the phone number、client course id and client class id; you can call interfaceGets the login client key this interface is used to get the full access to the classroom link.

Warning:In V3.4 it is marked as depreated(The interface will no longer be supported after 1st April 2020)

URL

!deprecatedWarning:In V3.4 it is marked as depreated(The interface will no longer be supported after 1st April 2020)

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 Format is:00 Country code-Mobile number;Mainland China mobile phone number does not write country number mobile Numbers Example:American mobile number 1 (800) 643-7676 send 001-8006437676;Chinese Mainland mobile Numbers send 13701237634
lifeTime No The default is 86400 seconds secret key the effective time(Unit: second) Null
uid No Or telephone, If uid and telephone are passed in at the same time,The uid parameter shall prevail User's UID Register the user UID returned by the user

Response data

key Type Sample value meaning
data string nre6ykkj2bkrte75 The temporary key returned
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=getTempLoginKey HTTP/1.1
Host: www.eeo.cn
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache

SID=2339736&safeKey=8c558533ce495c7ff8e7e8b973bd2f5c&timeStamp=1492872344&telephone=18516988551&lifeTime=
  • 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=23692341040" \
        -d "lifeTime=" \
        "https://api.eeo.cn/partner/api/course.api.php?action=getTempLoginKey"

Response sample(The normal return json packet example)

{
  "data": "nre6ykkj2bkrte75",
  "error_info": {
    "errno": 1,
    "error": "程序正常执行"
  }
}

Instructions:

Automatically open the link of the client to the classroom: classin://www.eeo.cn/enterclass?telephone=13612340080&authTicket=nre6ykkj2bkrte75&classId=248435&courseId=114395&schoolId=1000082

(The authTicket corresponding to the above link is the temporary key of the above interface, classId, and the courseId parameter corresponds to the client_class_id and client_course_id in the class section or section information interface)

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 the operation failure(An unknown error)
114 expression server exception
134 expression phone number format error
150 expression No get to the phone number login key(This cell phone number does not belong to the student or teacher at the school)

results matching ""

    No results matching ""