SDK reference

Updated at:

ENS SDK Version Guide provides SDK downloads, installation instructions, and usage examples for supported programming languages.

Version guide

The ENS service OpenAPI Portal provides the V1.0 SDK and the V2.0 SDK. The V2.0 SDK improves robustness and usability while maintaining full API compatibility. The V1.0 SDK is no longer maintained. We recommend that you use the V2.0 SDK.

Note

The V1.0 SDK is the original SDK, and the V2.0 SDK is the upgraded SDK. For a detailed comparison between the versions, see V2.0 SDK and V1.0 SDK.

SDK downloads for each language

The ENS V2.0 SDK source code is hosted on GitHub and in major dependency repositories. We recommend that you use a dependency management tool for your programming language to install the SDK. You can also use the CommonRequest method to make calls. For more information, see Generalized and specialized calls. You can obtain more sample code from the OpenAPI Developer Portal.

Supported languages

SDK installation and sample code

Java (asynchronous)

Java (asynchronous) SDK

Java

Java SDK

TypeScript

TypeScript SDK

Go

Go SDK

PHP

PHP SDK

Python

Python SDK

C#

C# SDK

C++

C++ SDK

Swift

Swift SDK

Usage example

The following example calls the DescribeEnsRegions operation to query available ENS edge zones. For more information, see Java SDK call example.