Mengirim paket ke Tiongkok daratan menggunakan templat paket.
Deskripsi operasi
Usage notes
You can call the SendMessageWithTemplate operation to send messages only to the Chinese mainland.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dysms:SendMessageWithTemplate |
create |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| To |
string |
Yes |
Nomor telepon seluler tujuan pengiriman paket. Anda harus menambahkan kode negara di awal nomor telepon seluler. Contoh: 861503871****. Untuk informasi selengkapnya, lihat Kode panggilan. |
861503871**** |
| From |
string |
Yes |
Tanda tangan. Untuk mengkueri tanda tangan, masuk ke Konsol Short Message Service (SMS) lalu navigasi ke tab Signatures di halaman Go China. |
Alicloud321 |
| TemplateCode |
string |
Yes |
Kode templat paket. Untuk mengkueri kode, masuk ke Konsol SMS lalu navigasi ke tab Templates di halaman Go China. |
SMS_**** |
| TemplateParam |
string |
No |
Nilai variabel dalam templat paket. Jika variabel ada dalam templat, parameter ini wajib diisi. |
{"code":"1234","product":"ytx"} |
| SmsUpExtendCode |
string |
No |
Kode ekstensi paket MO. |
90999 |
| ValidityPeriod |
integer |
No |
Periode validitas paket. |
1 |
| ChannelId |
string |
No |
ID saluran. |
5739 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| ResponseCode |
string |
The status code of the delivery request. |
OK |
| NumberDetail |
object |
The details about the mobile phone number of the recipient. |
|
| Carrier |
string |
The carrier that owns the mobile phone number. |
China Mobile |
| Region |
string |
The region to which the mobile phone number belongs. |
Nanjing, Jiangsu |
| Country |
string |
The country to which the mobile phone number belongs. |
China |
| ResponseDescription |
string |
The description of the delivery request status. |
The SMS Send Request was accepted |
| Segments |
string |
The number of messages that incurred fees. |
1 |
| To |
string |
The mobile phone number to which the message was sent. The dialing code was added to the beginning of the mobile phone number. Example: 861503871****. |
861503871**** |
| MessageId |
string |
The ID of the message. |
1**************3 |
| RequestId |
string |
The ID of the request. |
F655A8D5-B967-440B-8683-DAD6FF8D23D6 |
Contoh
Respons sukses
JSONformat
{
"ResponseCode": "OK",
"NumberDetail": {
"Carrier": "China Mobile",
"Region": "Nanjing, Jiangsu",
"Country": "China"
},
"ResponseDescription": "The SMS Send Request was accepted",
"Segments": "1",
"To": "861503871****",
"MessageId": "1**************3",
"RequestId": "F655A8D5-B967-440B-8683-DAD6FF8D23D6"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.