Delete the class

Delete the class,You need SID、safekey、timeStamp、course ID and class ID ...,Returns the description after execution.

URL

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

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

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=delCourseClass HTTP/1.1
Host: www.eeo.cn
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache

SID=2339736&safeKey=74522fc7742a006b8bc535d7219a3d2b&timeStamp=1493350512&courseId=490583&classId=1405639
  • Shell cURL analog request instruction
curl -H "Content-Type: application/x-www-form-urlencoded" -X "POST" \
      -d "SID=1234567" \
      -d "safeKey=7fe917c22f3afd6ebadd329cfab7d403" \
      -d "timeStamp=1492933564" \
      -d "courseId=14181" \
      -d "classId=23611" \
      "https://api.eeo.cn/partner/api/course.api.php?action=delCourseClass"

Response sample(The normal return json packet example)

{
  "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).
104 Expression operation failure(An unknown error).
114 Expression Server exception.
140 Expression the class is under class and cannot be edited and deleted.
142 Expression this course does not have this section information.
143 Expression no such information.
144 Expression there is no such course under the agency.
145 Expression the class is over.
212 Expression this section has been removed.
369 Expression open class does not support this operation.

results matching ""

    No results matching ""