Remove students from class(multiple)

Remove students from class(multiple),Need SID, safekey, timeStamp, course ID, class ID, student identification (1 is students), The array of student accounts to be deleted, including the student accounts to be deleted, student uids.Returns the post-execution instructions for each account.

URL

https://api.eeo.cn/partner/api/course.api.php?action=delClassStudentMultiple

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
courseId Yes Null Course ID Null
classId Yes Null Class ID Null
identity Yes Null Student identification(1 student) Null
studentUidJson No If the array is not empty, the length of at least 1, can be multiple uids.Either studentUidJson or studentJson. If studentUidJson and studentJson are sent at the same time, studentUidJson shall prevail You need to delete the array of student uids Null
 └ student 1 UID No Null Student UID Register the user UID returned by the user interface, for example: 1001001
 └ student 2 UID No Null Student UID Register the user UID returned by the user interface, for example: 1001001

Response data

key Type Sample value meaning
data array [] Returns an array of Data information
└ data return information 1 object Return message object
  └ errno number 1 Error code
  └ error string "Normal execution" Error list
└ data return data 2 object return message object
  └ errno number 1 Error code
  └ error string "Normal execution" Error list
└ ······ object Return message object
  └ errno number ··· Error code
  └ error string ··· Error list
error_info object Return message object
└ errno number 1 Error code
└ error string "Normal execution" Error list

Sample

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

SID=2339736&safeKey=00ab6e63b2f13891a79a067aa4290854&timeStamp=1494410390&courseId=542163&classId=1474563&identity=1&studentUidJson=["1001001"]
  • 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=2447" \
    -d "identity=1" \
    -d 'studentUidJson=["1001001","1001002"]' \
    "https://api.eeo.cn/partner/api/course.api.php?action=delClassStudentMultiple"

Response sample (normal return json packet sample)

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

Error code description

Error code Description
1 Expression successful execution.
100 Expression parameter not all or error.
102 Expression dont have permissions(Security verification failed).
113 Expression mobile phone number is not registered.
114 Expression server exception.
142 Expression this course does not have this section information.
143 Expression there is no information about this section.
144 Expression there is no such course under the agency.
145 Expression the class is over.
155 Expression the student array must not be empty.
159 Expression at this time, only students are supported.
167 Expression there are no students of this mobile phone number.
171 Expression the students failed in the class.
212 Expression this section has been deleted.
369 Expression open class does not support this operation.
400 Indicates that the request data is not valid

results matching ""

    No results matching ""