Add Student
Add student (add student under original name institution), SID, safekey, timeStamp, student account, student name, studentUid.The data returned includes instructions for each additional execution of the lesson.Add student (add student under original name institution), SID, safekey, timeStamp, student account, student name, studentUid.The data returned includes a post-execution note for each lesson.
URL
https://api.eeo.cn/partner/api/course.api.php?action=addSchoolStudent
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 |
studentAccount |
Yes |
Format: 00 country number - mobile phone number; note: mobile phone Numbers in mainland China do not include country .Either studentUid or studentUid. If studentAccount is passed to studentUid at the same time, the studentUid parameter shall prevail |
Student account |
For example: us mobile phone number 1 (800) 643-7676 filled 001-8006437676;The phone number of mainland China is 15800000001 |
studentName |
Yes |
1-24 words, no distinction between Chinese and English, more than 24 will automatically cut into 24 words |
Student names will be displayed in the student administration office in the background of eeo.cn |
Null |
Response data
key |
Type |
Sample value |
meaning |
error_info |
object |
|
Return information object |
└ errno |
number |
1 |
The error code |
└ error |
string |
"Routine execution" |
Error details |
Sample
POST /partner/api/course.api.php?action=addSchoolStudent HTTP/1.1
www.eeo.cn
application/x-www-form-urlencoded
no-cache
SID=2339736&safeKey=dcbc0d041c043f3a4decabe6d24e61dd&timeStamp=1493712683&studentAccount=18516900101&studentName=Jeck
- 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 "studentAccount=18516900101" \
-d "studentName=小红" \
"https://api.eeo.cn/partner/api/course.api.php?action=addSchoolStudent"
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). |
103 |
expression failed to put the image in the server |
104 |
expression operation failure(An unknown error) |
113 |
The mobile phone account is not registered |
114 |
Represents a server exception |
128 |
Indicates that the institution account cannot be added as a student |
133 |
Already an institutional student |
134 |
Indicates that the phone number is illegal |
288 |
Indicates that this paragraph is illegal |
400 |
Indicates that the request data is not valid |