Updated on 2024-12-03 GMT+08:00

Example Programs

OBS BrowserJS SDK provides abundant example programs for your reference and use.

You can obtain them from the OBS BrowserJS SDK.

After you download and decompress eSDK_Storage_OBS_<VersionId>_BrowserJS.zip, you can obtain example programs from eSDK_Storage_OBS_<VersionId>_BrowserJS/examples.

Alternatively, you can click code package names provided in the following table to obtain corresponding example programs.

Example programs include:

Sample Code

Description

bucket-operations-sample

How to use bucket-related APIs.

object-operations-sample

How to use object-related APIs.

upload-download-sample

How to upload and download an object.

create-folder-sample

How to create a folder.

delete-objects-sample

How to delete objects in a batch.

list-objects-sample

How to list objects.

list-versions-sample

How to list versioning objects.

simple-multipart-upload-sample

How to perform a multipart upload.

post-object-sample

How to perform a browser-based upload.

temporary-signature-sample

How to use URLs for temporary authentication.