Help Center/ KooDrive/ API Reference/ API/ Collaboration Portal/ Listing Recently Visited Files
Updated on 2024-07-30 GMT+08:00

Listing Recently Visited Files

Function

List files that you recently visited.

URI

GET /koodrive/ose/v1/access

Request Parameters

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Traceid

No

String

Service trace ID, which contains 58 bits.

Authorization

Yes

String

Access token. Token authentication is used to call KooDrive APIs. A token indicates the permission. When an API is called, the token is added to the request header to obtain the operation permission. For details about how to obtain an access token, see the corresponding developer guide. The format is Bearer+{access_token}.

language

No

String

Language code, which complies with the internationalization specifications. For example, en-US indicates English (United States). English (United States) is used by default.

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

code

String

Response code.

msg

String

Response information.

list

Array of RecentlyAccess objects

List of recently visited files.

Table 3 RecentlyAccess

Parameter

Type

Description

operateTime

String

Operation time.

operType

Integer

Operation type. 1: viewing; 2: editing.

file

AccessiFileInfo object

Basic file information.

status

Integer

Status. 1: The file has been deleted. 2: The space has expired (the space has been disabled or deleted or you do not have the space permission).

Table 4 AccessiFileInfo

Parameter

Type

Description

id

String

File ID.

containerId

String

Space ID.

name

String

File name.

collaboratorId

String

Co-author ID.

collaborator

String

Co-author name.

collaborateTime

String

Collaboration time.

collaborateType

String

Collaboration type. 2: editing; 3: sharing; 4: saving to the individual space.

fileType

String

File type. /** * Folder / FOLDER = "10", /* * Image / PICTURE = "15", /* * Video / VIDEO = "20", /* * Word file / WORD = "26", /* * Excel file / EXCEL = "27", /* * PowerPoint file / PPT = "28", /* * Audio / AUDIO = "30", /* * Compressed file / ARCHIVE = "35", /* * Application / APPLICATION = "40", /* * Other */ OTHER = "45",

owner

String

File owner.

containerName

String

For an individual space, this parameter is null. For a department space, the value is the department name.

containerType

Integer

0: department space; 1: individual space; 2: group space.

favorite

Boolean

true: The file is added to favorites. false: The file is not added to favorites.

teamId

String

For an individual space, this parameter is null. For a department space, the value is the department ID. For a group space, the value is the group ID.

Example Requests

GET /koodrive/ose/v1/access

Example Responses

Status code: 200

OK

{
  "code" : "string",
  "msg" : "string",
  "list" : [ {
    "operateTime" : "2024-06-03T02:26:45.897Z",
    "operType" : 0,
    "file" : {
      "id" : "string",
      "containerId" : "string",
      "name" : "string",
      "collaboratorId" : "string",
      "collaborator" : "string",
      "collaborateTime" : "2024-06-03T02:26:45.897Z",
      "collaborateType" : "string",
      "fileType" : "string",
      "owner" : "string",
      "containerName" : "string",
      "containerType" : 0,
      "favorite" : true,
      "teamId" : "string"
    },
    "status" : 0
  } ]
}

Status Codes

Status Code

Description

200

OK