Get the cloud driver folder list

Through this API, you can query the list of folders in the two levels of the school's cloud inventory, and the returned data contains: folder ids, parent ids, folder names, and so on.

URL

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

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

Response data

key Type Sample value meaning
data object List of two levels of folders in the school's cloud inventory. Key is the ID of the first level folder, and value is the list of subdirectories under it
└ folder 1 array A list of subdirectories under the first level folder
  └ folder 1-1 object Secondary folder data
   └ id string 713960
   └ pid string 713940 Parent folder ID
   └ name string Course 1 name
└ folder 1-2 object Secondary folder data
   └ id string 713961
   └ pid string 713959 Parent folder ID
   └ name string course 1 name
└ ... Secondary folder data
└ ··· A list of subdirectories under the first level folder
error_info object Return message object
└ errno number 1 Error code
└ error string "Normal execution" Error list

Sample

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

SID=2339736&safeKey=9974697bf6f886a17cc37fb9fd135d0c&timeStamp=1493798252
  • 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" \
      "https://api.eeo.cn/partner/api/cloud.api.php?action=getFolderList"

Response sample(The normal return json packet example)

{
  "data": {
    "713940": [
      {
        "id": "713960",
        "pid": "713940",
        "name": "全部文件"
      }
    ],
    "713959": [
      {
        "id": "713961",
        "pid": "713959",
        "name": "我的教材"
      }
    ]
  },
  "error_info": {
    "errno": 1,
    "error": "程序正常执行"
  }
}

Error Code Description

Error Code Description
1 Successful execution.
100 Incomplete or incorrect parameters.
102 No permissions(Security verification failed).
106 No data.

results matching ""

    No results matching ""