Edit students on the stage in the class
You need to provide SID,safekey,timeStamp,Course ID,class ID,seatNum
,all parameters are required.returns the successful instruction after execution.seatNum
you Can modify the maximum number of maximum power for your schooin,the maximum number of people on the stage that is larger than the school will default to the maximum number of people on the school,please contact the account manager if you need more than the maximum number of schools.
URL
https://api.eeo.cn/partner/api/course.api.php?action=modifyClassSeatNum
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 |
courseId |
Yes |
Null |
Course ID |
Null |
classId |
Yes |
Null |
Class ID |
Null |
seatNum |
Yes |
Maximum number of students will be changed to the maximum number of students in the school,bigger than the maximum number of people in the school will default to the maximum number of people on stage(12) |
on stage students number(Not including teacher) |
For example:Change to 1v6,this parameter value should is 6. |
isHd |
No |
0= non-hd, 1= hd, 2= full hd, all non-1 Numbers, not including 2, are treated as 0 |
Whether the hd |
SeatNum and isHd pass at least one |
Response data
key |
Type |
Sample value |
meaning |
error_info |
object |
|
Returns an array of data |
└ errno |
number |
1 |
Error code |
└ error |
string |
"program normal run" |
Error list |
Sample
POST /partner/api/course.api.php?action=modifyClassSeatNum HTTP/1.1
www.eeo.cn
application/x-www-form-urlencoded
no-cache
SID=2339736&safeKey=58ce17711abea665f40f67d550ce96fb&timeStamp=1493364941&courseId=490583&classId=1395039&seatNum=6&isHd=2
- 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 "courseId=442447" \
-d "classId=23644" \
-d "seatNum=6" \
-d "isHd=2"
"https://api.eeo.cn/partner/api/course.api.php?action=modifyClassSeatNum"
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(unknown error). |
140 |
Expression This class is in the class,cannot edit and delete. |
142 |
Expression This course does not have this course message. |
143 |
Expression There's no information about this class. |
144 |
Expression there is no class under the school. |
145 |
Expression this class is over. |
147 |
Expression dont have this course message. |
149 |
Expression this course has been deleted. |
153 |
Expression course has expired. |
348 |
Expression 20 minutes before the class can't change the number of people on the stage. |
349 |
Expression the number of people on stage edit failed. |
369 |
Expression open class does not support this operation. |