Use the read
method to retrieve information about the storage capacity of authenticated user.
try {
const storageInfo = await sdk.storage.read()
console.log('Storage Capacity:', storageInfo.capacity, 'bytes')
console.log('Storage Used:', storageInfo.used, 'bytes')
} catch (error) {
console.error(error.message)
}
Required API Key Permission
Read Directory