Delete School Label
The API call requires SID, safeKey, timeStamp and label ID, and returns the instruction after execution.
URL
https://api.eeo.cn/partner/api/course.api.php?action=deleteSchoolLabel
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 |
labelId |
Yes |
Null |
Label ID |
No |
Response Parameters
Key |
Type |
Sample Value |
Meaning |
error_info |
object |
|
Return message object |
└ errno |
number |
1 |
error code |
└ error |
string |
"Normal execution" |
error list |
Sample
POST /partner/api/course.api.php?action=deleteSchoolLabel HTTP/1.1
www.eeo.cn
application/x-www-form-urlencoded
no-cache
SID=2339736&safeKey=e98b01228fca036bf2ab060f7a8a6ec3&timeStamp=1493725870&labelId=363
- 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 "labelId=363" \
"https://api.eeo.cn/partner/api/course.api.php?action=deleteSchoolLabel"
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). |
355 |
The label does not belong to your instruction. |
356 |
The label for this ID does not exist. |