Create folders
Create folders,You need to provide SID, safekey, timeStamp, parent folder ID (under which folder you create folders), folder name. Returns the folder ID after success,Error description returned after failure.note:The maximum number of directories in a folder is 5000,most is 15 levels.
URL
https://api.eeo.cn/partner/api/cloud.api.php?action=createFolder
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 |
folderId |
Yes |
Null |
folders ID |
Under which folder create folders |
folderName |
Yes |
Null |
Folder name |
Null |
Response data
key |
Type |
Sample value |
meaning |
data |
string |
123456 |
Create the resulting folder ID |
error_info |
object |
|
Return message object |
└ errno |
number |
1 |
Error code |
└ error |
string |
"Normal execution" |
Error list |
Sample
POST /partner/api/cloud.api.php?action=createFolder HTTP/1.1
www.eeo.cn
application/x-www-form-urlencoded
no-cache
SID=2339736&safeKey=10a6f11c7e2194146c88650439aa0f2e&timeStamp=1493792469&folderId=747759&folderName=tools
- 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 "folderId=123456" \
-d "folderName=课程1" \
"https://api.eeo.cn/partner/api/cloud.api.php?action=createFolder"
Response sample(The normal return json
packet example)
{
"data": "123456",
"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). |
104 |
expression operation failure. |
193 |
expression folder does not exist |
194 |
expression the folder does not belong to this organization(no permission operation) |
196 |
expression the folder has no operation privileges |
206 |
Indicates that a folder with the same name already exists (also returns the folder ID) |
207 |
expression the folder hierarchy is out of bounds |
208 |
expression the number of folders exceeded the limit |