Modify class lock status

Modify class lock need send SID,safekey,timeStamp,classID, Whether the lock,Returns the details after execution. All classes are unlocked by default。If the class is changed to the locked state after the function of automatic deletion of video recording and pictures of supervised classes is enabled in the background of, the video recording and pictures of supervised classes will not be automatically deleted.


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 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
classId Yes Null Class ID Null
isLock Yes 0 is not locked,0 is locked,All non-1's are treated as 0's Whether the lock Null

Response data

key Type Sample value meaning
error_info object Return information object
└ errno number 1 The error code
└ error string "Routine execution" Error details


  • HTTP request
POST /partner/api/course.api.php?action=updateClassLockStatus HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache

  • 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 "classId=9876" \
        -d "isLock=1" \

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 failed/unknown error.
233 Expression there is no such course in this school
369 Expression the class/course type does not support this operation
391 Expression pending classes do not support changing the locking state

results matching ""

    No results matching ""