All Products
Search
Document Center

Short Message Service:SDK Reference

Last Updated:Feb 27, 2026

The SMS SDK is a dependency package that simplifies development by encapsulating underlying API calls. It handles complex details such as network communication, request formatting, and response parsing, and supports multiple programming languages. Using simple interfaces, you can quickly perform operations such as signature management, template management, and sending SMS messages. This lets you focus on your business logic without managing the underlying technical details.

SDK Download Addresses

The and International Short Message Service SDK support multiple programming languages. You can obtain SDK installation methods from the OpenAPI portal. You can view the source code and installation guides on the open source platform GitHub. You can install the SDKs using the mainstream dependency management tools for each programming language.

Language

SDK Installation Method

GitHub Address

Quick Start

Java

SDK for Java

java-dysmsapi-20180501

Use Alibaba Cloud SDK for Java with an IDE

Python

SDK for Python

python-dysmsapi-20180501

Use the Alibaba Cloud Python SDK in an IDE

PHP

SDK for PHP

php-dysmsapi-20180501

Use the Alibaba Cloud PHP SDK with an IDE

Go

SDK for Go

go-dysmsapi-20180501

Use the Alibaba Cloud Go SDK with an IDE

TypeScript

SDK for TypeScript

typescript-dysmsapi-20180501

Use Alibaba Cloud SDK for Node.js with an IDE

C++

SDK for C++

cpp-dysmsapi-20180501

/

C#

SDK for C#

csharp-dysmsapi-20180501

Use the Alibaba Cloud SDK for .NET in an IDE

Swift

SDK for Swift

swift-dysmsapi-20180501

/

Usage Examples

The following example shows how to use the SMS SDK to send a text message to a specified phone number.

Note

Before you use the sample code, take note of the following parameters:

  • Endpoint: The service endpoint for Short Message Service. For the , use . For international services, use dysmsapi.ap-southeast-1.aliyuncs.com.

  • AccessKeyId and AccessKeySecret: Your AccessKey pair. You can view the AccessKeyId in the Resource Access Management (RAM) console by clicking the RAM username. The AccessKeySecret cannot be viewed after it is created. If you do not have a local backup, you must create a new AccessKey pair.