Updated on 2024-04-26 GMT+08:00

Example Programs

OBS BrowserJS SDK provides abundant example programs for user reference and direct use. These programs can be obtained from the OBS BrowserJS SDK development package. For example, files in eSDK_Storage_OBS_<versionId>_BrowserJS/examples obtained by decompressing eSDK_Storage_OBS_<versionId>_BrowserJS.zip are example programs. 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.