getFileListById()
Syntax
getFileListById(ids: Array<string> | Array<number>, token?: string)The method gets a list of file information by file ID.
Parameters
Name
Type
Required
Description
ids
Array<string> or Array<number>
Yes
Array of file 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 { getFileById } from "@eueno/lib-browser";
const getDetailFiles = async () => {
let id = "20086";
try {
const response = await getFileListById(id);
console.log(response?.data?.data);
} catch (error) {
console.log(error);
}
};Response of example:
Last updated