Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Codeigniter Sendgrid事件通知发布数据始终为空_Codeigniter_Webhooks_Sendgrid - Fatal编程技术网

Codeigniter Sendgrid事件通知发布数据始终为空

Codeigniter Sendgrid事件通知发布数据始终为空,codeigniter,webhooks,sendgrid,Codeigniter,Webhooks,Sendgrid,我添加了一个url以从Sendgrid获取事件通知的POST响应 捕获结果的代码如下 $result = file_get_contents('php://input'); $events = json_decode($result, true); $this->db->insert('delivery_temp', ['response' => $events]); 当我在sendgrid中点击TestYourIntegration按钮尝试时,我总是得到空的结果。 上述代码

我添加了一个url以从Sendgrid获取事件通知的POST响应

捕获结果的代码如下

$result = file_get_contents('php://input');
$events = json_decode($result, true);
$this->db->insert('delivery_temp', ['response' => $events]);
当我在sendgrid中点击TestYourIntegration按钮尝试时,我总是得到空的结果。 上述代码添加到codeigniter中控制器的索引函数中。 url就像 提前谢谢