SDK reference

Updated at:

Learn about Cell Phone Number Service SDK versions, and how to download, install, and use the SDKs for popular languages.

SDK version guide

The Cell Phone Number Service OpenAPI Portal provides both V1.0 SDK and V2.0 SDK. The V2.0 SDK improves robustness and usability without changing any API features. 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 version, and the V2.0 SDK is the upgraded version. For more information, see V2.0 SDK and V1.0 SDK.

SDK downloads for each language

The Cell Phone Number Service V2.0 SDK source code is hosted on GitHub and in popular dependency repositories. You can install the SDK by using the standard dependency management tool for your language, or make calls by using the CommonRequest method. For more information, see Generalized and specialized calls. For more code samples, visit the OpenAPI Developer Portal.

Major languages

GitHub address

Latest SDK download address

Java

java-dytnsapi-20200217

Download Java SDK

Python

python-dytnsapi-20200217

Download Python SDK

PHP

php-dytnsapi-20200217

Download PHP SDK

Go

go-dytnsapi-20200217

Download Go SDK

Node.js

nodejs-dytnsapi-20200217

Download Node.js SDK

C++

cpp-dytnsapi-20200217

Download C++ SDK

C#

csharp-dytnsapi-20200217

Download C# SDK

Swift

swift-dytnsapi-20200217

Download Swift SDK

Usage example

The following example shows how to use the Python SDK to query the status of a number. For more information, see Python SDK call example.