【发布时间】:2017-05-07 17:50:09
【问题描述】:
$url = 'https://rest.nexmo.com/sms/json?' . http_build_query(
[
'api_key' => 'xxxxx',
'api_secret' => 'xxxxxxx',
'to' => $mobile,
'from' => 'ABC',
'text' => $message,
]
);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
此 api 不工作且未显示任何错误。我只使用此代码发送短信还需要其他任何东西吗? 我使用了 api_key 和 secret 正确。
【问题讨论】: