Remove Course Students/Auditing Students(Single)

Remove student/audit under the course (single), need SID, safekey, timeStamp, course ID of the course, identification of student or audit, need to add account number, student UID.Returns the description after execution.

URL

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

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
identity Yes Null Student and audit identification(1 student,2 audit) Null
studentUid Yes NULL Student UID that needs to be removed Register the user UID returned by the user interface

Response Data

Key Type Sample Value Meaning
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=delCourseStudent HTTP/1.1
Host: www.eeo13.test
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache

SID=1002289&safeKey=ee982747b6b6333cdc40644b06b7c57d&timeStamp=1493030859&courseId=1431&identity=1&studentAccount=18516980114
  • 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 "identity=1" \
        -d "studentUid=1001001" \
        "https://api.eeo.cn/partner/api/course.api.php?action=delCourseStudent"
    

Response Sample(The normal return json packet example)

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

Error Code Description

Error Code Description
1 Successful execution.
100 Incomplete or incorrect parameters.
102 No permission(Security verification failed.).
104 Operation failure(Unknown error).
106 No data available.
114 Server exception.
144 There is no such course in your institution.
147 No information about the course.
149 The course has been deleted.
153 The course is expired and cannot be edited.
162 There is no such student in the course.
369 Do not support to operate this type of courses and lessons(public course).
400 The requested data is illegal.

results matching ""

    No results matching ""