Modify class lock status
Modify class lock status.you 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 eeo.cn, the video recording and pictures of supervised classes will not be automatically deleted.
URL
https://api.eeo.cn/partner/api/course.api.php?action=updateClassLockStatus
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 |
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 |
Sample
POST /partner/api/course.api.php?action=updateClassLockStatus HTTP/1.1
www.eeo.cn
application/x-www-form-urlencoded
no-cache
SID=2339736&safeKey=4c375898926f24ad991099df67ebef92&timeStamp=1493729726&classId=1395037&isLock=1
- 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" \
"https://api.eeo.cn/partner/api/course.api.php?action=updateClassLockStatus"
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 |