getProjectInfo()
Syntax
getProjectInfo(projectId: string, token?: string)Parameters
Name
Type
Required
Description
Returns
Example
Last updated
getProjectInfo(projectId: string, token?: string)Last updated
import {getProjectInfo} from "@eueno/lib-browser";
const getData = async () => {
try {
if (!token || !projectId) return;
const response = await getBucketInfo(projectId);
if (response?.status === 200) {
console.log(response?.data?.data);
} else toast.error("Error getting project information");
} catch (error) {
console.error(error);
}
};
{
"msg": "success",
"data": {
"id": 1,
"name": "ProjectName",
"ownerAddress": "0x…",
"totalFile": "0",
"totalSize": "0"
"updatedAt": "2023-03-08T15:02:45.881Z",
"createdAt": "2023-03-08T10:43:53.677Z"
}
}