API的消息接收器URL未读取/传递任何数据到我使用的URL中,没有动作或日志被触发到我的服务器中(因为如果URL由消息接收器在API中调用a行将插入到我的数据库中的表中。
有关如何使邮件接收器URL正常工作的任何帮助或建议?
$message_type = $_POST["message_type"];
if (strtoupper($message_type) == "INCOMING")
{
$message = 'Sample';
$mobile_number = $_POST["mobile_number"];
$shortcode = $_POST["shortcode"];
// $timestamp = $_POST["timestamp"];
// $request_id = $_POST["request_id"];
$content = 'Accepted';
$status = 200;
DB::table('action_history_label')->insert(['action_id' => 'SDSDS', 'action_label' => 'New Receive']);
$this->data['client_id'] = 'CLIENT_ID';
$this->data['secret_key'] = 'SECRET_KEY';
$this->data['short_code'] = 'SHORTCODE';
$chikkaAPI = new ChikkaSMS($this->data['client_id'],$this->data['secret_key'],$this->data['short_code']);
$response = $chikkaAPI->sendText(md5(date('YmdHms').uniqid(rand(), true)), $mobile_number, 'REPLY FVCK!');
return response()->json(['status' => $status, 'message' => $content]);
}
else
{
$content = 'Error';
$status = 500;
return response()->json(['status' => $status, 'message' => $content]);
}
谢谢!