puter.auth.getDetailedAppUsage()Get detailed usage statistics for an application.
Users can only see the usage of applications they have accessed before. Usage data is scoped to the calling app only.
puter.auth.getDetailedAppUsage(appId)
appId (String) (required)
The id of the application.
A Promise that resolves to a DetailedAppUsage object containing resource usage statistics for the given application.
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.auth.getDetailedAppUsage(appId).then(function (result) {
puter.print(`<pre>${JSON.stringify(result, null, 2)}</pre>`);
});
</script>
</body>
</html>