All Products
Search
Document Center

Drive and Photo Service:v1.x

Last Updated:Jun 17, 2026

The JavaScript SDK v1.x for Drive and Photo Service (Developer Edition) supports file storage, management, and sharing with a comprehensive set of API operations.

Title

Description

Getting Started

The Alibaba Cloud PDS JavaScript SDK manages file operations and resources such as drives, shares, and groups. It runs in browsers and Node.js environments. Install with npm to integrate into Vue, React, or Node.js projects.

PDSClient

PDSClient is the core class of the PDS JavaScript SDK. Create instances with configuration parameters such as token information and API destinations to call PDS API operations. The class supports setting tokens, sharing tokens, making API calls, and event listeners for fault handling.

Token

Obtain tokens through JWT quick integration, service account tokens, or token refresh.

Upload file

Upload files with simple uploads or upload tasks. Supports progress listeners and status management.

Download file

Download files using the downloadFile and createDownloadTask methods, with progress listeners and resumable downloads.

Disk

Manage disks with CRUD operations: get space quotas, create, update, and delete disks, and query disk details and lists.

File operations

Manage files and folders: list, search, query, download, rename, update, copy, move, and batch delete files. Also supports creating folders, getting file information by path, saving and retrieving file content, and getting breadcrumb folder information.

Recycle bin

Empty the recycle bin and recover files in batches.

File authorization

Manage file authorization: query shared file lists, view received shared files, and add, remove, or list file permissions.

Share links

Create, cancel, and list share links. Supports anonymous access to share information and tokens for file sharing and access control.

User

Create, query, update, delete, search, and list users.

Groups and members

Create, delete, and update groups, query group information, search for groups, and manage group member relationships.

Role authorization

Assign and cancel team administrator roles, and query the list of assigned roles.