确认订单后,我想在 nexmo 短信响应中传递 html 链接。但它把它当作文本。
这是代码:
$api_key = '********';
$api_secret = '***************';
$number = '*************';
$message = 'Your order has been placed.';
$message .= "<a href='accounts/download_order/'>Download your tickets</a>";
$url = 'https://rest.nexmo.com/sms/json?' . http_build_query([
'api_key' => $api_key,
'api_secret' => $api_secret,
'to' => $number,
'from' => 'NexmoWorks',
'text' => $message
]);