Drive and Photo Service (Developer Edition) provides the JavaScript SDK v0.x. This SDK supports file storage, management, and sharing, and offers developers a rich set of API operations and detailed guides for efficient file operations and data management.
Title | Description |
Getting Started | The Alibaba Cloud PDS JavaScript software development kit (SDK) is the official tool for file operations and resource management, including Drive, Share, and Group. It is compatible with browser and Node.js environments. Install it through npm for easy integration into Vue, React, or Node.js projects, enabling quick access to all PDS APIs. |
PDSClient | The Alibaba Cloud PDSClient class is the core of the official PDS JavaScript SDK. Create an instance of this class to call all PDS APIs. It requires configuration parameters such as token information and API destinations. The class provides methods to set tokens, share tokens, and make basic API calls. It also supports event listeners for tasks like fault handling. |
Token | Outlines multiple methods to obtain tokens, including quick integration with JWT, service account token retrieval, and token refresh. |
Upload files | Outlines methods for uploading files, including simple uploads and creating upload tasks. Supports progress listeners and status management. |
Download files | Download files using the |
Bucket | Manage buckets using the |
Disks | Provides disk management features. These include getting remaining space, creating, updating, and deleting disks, and querying and searching for disk information. Enterprise Edition users can use these features for storage management to ensure efficient file storage and access. |
File operations | Outlines file-related operations. These include listing files in a folder, searching for files, querying file information, getting file download URLs, saving and retrieving file content, renaming files, updating file information, getting file information by path, getting breadcrumb folder information, creating folders, deleting files in batches, copying files, and moving files. These APIs support file and folder management for various scenarios. |
Favorites | Manage favorites. Synchronously get the list of favorite files and perform batch operations on their status, such as adding files to or removing files from favorites. |
Recycle bin | Manage the recycle bin. This includes emptying the recycle bin and recovering files in batches. |
File value-added services | File value-added services include document preview, editing, audio and video transcoding, playback URL retrieval, and server-side file packaging. You must activate these services before use. After activation, you can preview and edit documents, get playback URLs for transcoded audio and video, and download packaged files. |
File authorization | Manage file authorization. Query shared file lists, manage sharing records, add and remove file permissions, and get information about authorized members. This is useful for managing file sharing and access control. |
Share links | Manage share links. Create, cancel, and list share links. This feature also allows anonymous retrieval of share information and tokens for easy file sharing. |
Sharing | Manage file sharing in hosted mode. This includes creating, updating, deleting, and querying shares. You can also get lists of shares and information about files shared with you. |
Users | Manage users in hosted mode. Create, list, query, update, delete, and search for users. Administrators and regular users can perform these operations. |
Groups and members | Manage groups and members. Create, delete, update, query, list, and search for groups. You can also manage group member relationships, which includes adding or deleting members, updating member relationships, and querying member information. |