我正在使用facade在Laravel中实现Nexmo。我想要显示一条消息,显示发送状态(或失败的任何响应),以及我的Nexmo中的余额。
Nexmo::message()->'to'=>''from'=>''please check and help`我如何才能做到这一点?
发布于 2018-04-27 16:15:02
发送短信时,使用$resp = Nexmo::message()->send(['to' => '', 'from' => '', 'text' => '']);捕获响应。
然后,您可以使用$resp->getStatus()和$resp-> getRemainingBalance()访问所需信息
https://stackoverflow.com/questions/50057687
复制相似问题