繁体   English   中英

无法获取由webhook在JSON字符串中发布的数据

[英]Unable to get data Posted by webhook in JSON String

我正在使用网络挂钩从我们公司的注册页面获取用户详细信息。

从注册页面以JSON格式发布的数据。 发布的JSON字符串如下

{"FirstName":"dharampal","EmailAddress":"er.dpyadav@gmail.com","Mobile":"123456789","Company":"Instasafe","LandingPageURL":"http://instasafe.com/SignUp","LandingPageId":"11e2-b071-123141050daa"}  

在接收端,我们使用的是PHP codeIgNiter,我尝试了以下方法,但无法获取数据。

 $postedData = $_POST;
 print_r($postedData);

它给出了:空数组

我尝试的其他方法是:

$postedData = json_decode(file_get_contents('php://input'), TRUE);

print_r($postedData);

它给出了:NULL

好像问题出在$ostedData$postedData的错字

$ostedData = json_decode(file_get_contents('php://input'), TRUE);
print_r($postedData);

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM