Rename folder

Rename folder,You need to provide SID, safekey, timeStamp, folder ID, folder name, and return the description after execution.

URL

https://api.eeo.cn/partner/api/cloud.api.php?action=renameFolder

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
folderId Yes Null folder ID Null
folderName Yes Null folder name Null

Response data

key Type Sample value meaning
error_info object Return message object
└ errno number 1 The error code
└ error string "Normal execution" Error list

Sample

  • HTTP request
POST /partner/api/cloud.api.php?action=renameFolder HTTP/1.1
Host: www.eeo.cn
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache

SID=2339736&safeKey=a4d43b49f39d06715d8ccb994f9069f1&timeStamp=1493792642&folderId=747759&folderName=hello
  • 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=中级课程" \
        "https://api.eeo.cn/partner/api/cloud.api.php?action=renameFolder"

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).
104 expression operation failure
193 expression folder does not exist
194 expression the folder does not belong to this school(Have the right to operate)
196 expression the folder has no operation privileges
206 Indicates that a folder with the same name already exists (also returns the folder ID)

results matching ""

    No results matching ""