Usage samples: WeChat
Please see Messaging Apps API for the full API reference.
Sending a text message
If you want to send a WeChat message, you need to specify the WeChatId of the user. Since there are no delivery receipts on WeChat, there will be no SMS fallback.
Hence, MSISDN is not required. Your request will look like this:
{
"user": {
"weChatUserId": "wsknf_12324k4n2n22"
},
"clientMessageId": "1234_id",
"type": "image",
"content": {
"text": "Welcome to Singapore!",
"url": "https://example.com/media/image.jpg",
}
}
Where weChatUserId
is the unique user id received via the incoming message webhook
Updated 11 months ago