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 | |||
Python | |||
PHP | |||
Go | |||
TypeScript | |||
C++ | / | ||
C# | |||
Swift | / |
Usage Examples
The following example shows how to use the SMS SDK to send a text message to a specified phone number.
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, usedysmsapi.ap-southeast-1.aliyuncs.com.AccessKeyIdandAccessKeySecret: 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.