从Webhook获取数据并使用php将其保存到数据库

时间:2020-03-30 15:45:58

标签: php json webhooks

我已经尝试过从mailparser webhook获取数据,但要从其显示数组而不是有效载荷中获取数据。

<?php
$data =file_get_contents("php://input");


$encodedData = json_decode($data, true); 

echo $encodedData =[
    'key'=>'value'];
?>

0 个答案:

没有答案