Mengirim Paket ke wilayah di luar Tiongkok Daratan, termasuk Hong Kong (Tiongkok), Makau (Tiongkok), Taiwan (Tiongkok).
Deskripsi operasi
-
Sends messages to regions outside the Chinese mainland, including Hong Kong (China), Macao (China), and Taiwan (China). You can also send messages through the SMS console.
-
This operation does not support sending messages to the Chinese mainland.
-
You cannot use resource plans if your account has an overdue payment. Before you call this operation, check your account balance and the remaining quota in your resource plans.
-
On the international site (alibabacloud.com), SMS is billed based on the submission status of messages. You are charged even if a carrier receipt indicates that the message failed to be delivered. For more information about resource plans and the pay-as-you-go billing method, see Billing.
QPS limits
This operation supports up to 2,000 calls per second per account. Exceeding this limit causes requests to be dropped, resulting in service interruptions.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dysms:SendMessageToGlobe |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| To |
string |
Yes |
Nomor telepon tujuan pengiriman Paket. Format: Untuk kode panggilan, lihat Kode panggilan. Catatan
Anda tidak dapat memanggil operasi layanan ini untuk mengirim Paket ke Tiongkok Daratan. |
8521245567**** |
| From |
string |
No |
Nomor telepon pengirim. Anda juga dapat menentukan ID pengirim, yang dapat berisi huruf dan angka. ID alfanumerik dapat memiliki panjang hingga 11 karakter, sedangkan ID khusus angka dapat memiliki panjang hingga 15 digit. |
Alicloud321 |
| Message |
string |
Yes |
Konten Paket. |
Hello |
| Type |
string |
No |
Tipe Paket. Nilai valid:
|
NOTIFY |
| TaskId |
string |
No |
ID Tugas. ID dapat memiliki panjang hingga 255 karakter. Anda dapat memperoleh ID Tugas dari bidang TaskId di tanda terima Paket. |
123****789 |
| ValidityPeriod |
integer |
No |
periode validitas Paket, dalam detik. |
600 |
| ChannelId |
string |
No |
ID saluran. |
3790 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| ResponseCode |
string |
The status code of the delivery request. |
OK |
| NumberDetail |
object |
The phone number details. |
|
| Carrier |
string |
The carrier. |
CMI |
| Region |
string |
The region to which the phone number belongs. |
HongKong |
| Country |
string |
The country where the number is registered. |
China |
| RequestId |
string |
The request ID. |
F655A8D5-B967-440B-8683-DAD6FF8DE990 |
| Segments |
string |
The number of billed messages. |
1 |
| ResponseDescription |
string |
The description of the delivery request status. |
The SMS Send Request was accepted |
| From |
string |
The sender ID that you specified. |
Alicloud321 |
| To |
string |
The phone number to which the message is sent. |
1380000**** |
| MessageId |
string |
The message ID. |
1008030300**** |
Contoh
Respons sukses
JSONformat
{
"ResponseCode": "OK",
"NumberDetail": {
"Carrier": "CMI",
"Region": "HongKong",
"Country": "China"
},
"RequestId": "F655A8D5-B967-440B-8683-DAD6FF8DE990",
"Segments": "1",
"ResponseDescription": "The SMS Send Request was accepted",
"From": "Alicloud321",
"To": "1380000****",
"MessageId": "1008030300****"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.