Home / Companies / Unified.to / Blog / Post Details
Content Deep Dive

How to use the Unified File Storage API

Blog post from Unified.to

Post Details
Company
Date Published
Author
-
Word Count
613
Language
-
Hacker News Points
-
Summary

The Unified File Storage API enables applications to access customer files and folders from various cloud storage providers, such as Google Drive, Microsoft OneDrive, and Dropbox, by functioning similarly to a file manager. The API returns a StorageFile object that can represent either a file or folder, with specific attributes like ID, name, and type, where folders lack a size or download URL. To list files and folders, the API uses a hierarchical file system, allowing users to call the List endpoint to retrieve the contents of nodes, with recursive functions employed to navigate through entire storage systems. Retrieving the contents of a specific file involves using the getFile API endpoint or accessing the download_url from the listFiles endpoint, though it is crucial to note that the download_url expires after one hour, necessitating a refreshed call to the getFile endpoint for continued access.