Help Center/ Object Storage Service/ SDK Reference/ Node.js/ Example Programs (SDK for Node.js)
Updated on 2024-11-13 GMT+08:00

Example Programs (SDK for Node.js)

OBS Node.js SDK provides abundant example programs for user reference and direct use. These programs can be obtained from the OBS Node.js SDK development package. For example, files in eSDK_Storage_OBS_<VersionId>_Node.js/examples obtained by decompressing eSDK_Storage_OBS_<VersionId>_Node.js.zip are example programs. Alternatively, you can click code package names provided in the following table to obtain corresponding example programs.

Example programs include:

Code Example

Description

bucket-operations-sample

How to use bucket-related APIs.

object-operations-sample

How to use object-related APIs.

download-sample

How to 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.

list-objects-infolder-sample

How to list objects in a folder.

object-meta-sample

How to customize object metadata.

simple-multipart-upload-sample

How to perform a multipart upload.

restore-object-sample

How to download Archive objects.

concurrent-copypart-sample

How to concurrently copy parts of a large object.

concurrent-download-object-sample

How to concurrently download parts of a large object.

concurrent-uploadpart-sample

How to concurrently upload parts of a large object.

post-object-sample

How to perform a browser-based upload.

temporary-signature-sample

How to use URLs for authorized access.