Updated on 2023-11-09 GMT+08:00

SDK Download Links

Download Address

  • Latest version of OBS Node.js SDK source code: Download
  • Earlier versions of OBS Node.js SDK: Download

API Documentation

Compatibility

  • Recommended Node.js versions: Node 0.12.x, Node4.x, Node6.x, Node8.x, and Node10.x
  • Interface functions: Not completely compatible with earlier versions (2.1.x). The following table describes the changes.

    Interface Function

    Description

    ObsClient.listBuckets

    In the response parameters, the type of the InterfaceResult.Buckets field changes to Array, and the InterfaceResult.Buckets.Bucket field is deleted.

    ObsClient.setBucketAcl

    In the request parameters, the type of the Grants field changes to Array, and the Grants.Grant field is deleted.

    ObsClient.getBucketAcl

    In the response parameters, the type of the InterfaceResult.Grants field changes to Array, and the InterfaceResult.Grants.Grant field is deleted.

    ObsClient.setObjectAcl

    In the request parameters, the type of the Grants field changes to Array, and the Grants.Grant field is deleted.

    ObsClient.getObjectAcl

    In the response parameters, the type of the InterfaceResult.Grants field changes to Array, and the InterfaceResult.Grants.Grant field is deleted.

    ObsClient.setBucketLogging

    In the request parameters, the type of the LoggingEnabled.TargetGrants field changes to Array, and the LoggingEnabled.TargetGrants.Grant field is deleted.

    ObsClient.getBucketLogging

    In the response parameters, the type of the InterfaceResult.LoggingEnabled.TargetGrants field changes to Array, and the InterfaceResult.LoggingEnabled.TargetGrants.Grant field is deleted.

    ObsClient.setBucketWebsite

    In the request parameters, the type of the RoutingRules field changes to Array, and the RoutingRules.RoutingRule field is deleted.

    ObsClient.getBucketWebsite

    In the response parameters, the type of the InterfaceResult.RoutingRules field changes to Array, and the InterfaceResult.RoutingRules.RoutingRule field is deleted.

    ObsClient.setBucketCors

    In the request parameters, the CorsRule field is renamed as CorsRules.

    ObsClient.getBucketCors

    In the response parameters, the InterfaceResult.CorsRule field is renamed as InterfaceResult.CorsRules.

    ObsClient.setBucketTagging

    In the request parameters, the type of the TagSet field changes to Array, and the TagSet.Tag field is deleted.

    ObsClient.getBucketTagging

    In the response parameters, the type of the InterfaceResult.TagSet field changes to Array, and the InterfaceResult.TagSet.Tag field is deleted.