getShareList()

Syntax

getShareList(id: string | number, token?: string)

Get a list of users that a file/folder was shared with them by file/folder id.

Parameters

Name
Type
Required
Description

id

string or number

Yes

The file/folder id

token

string

No

The authentication token response from Eueno API when login. After login, this token was saved in local storage with the name “eueno-token".

Example

import { getShareList as getShareListLibrary } from "@eueno/lib-browser";
 
const getListShare = async () => {
   try {
     const res = await getShareListLibrary(id, token);
     if (res?.data?.data) console.log(res?.data?.data);
   } catch (error) {
     console.log(error);
   }
 };

Response of example:

Last updated