Closed priyolahiri closed 12 years ago
Also, is the request from Postmark to the webhook a POST or a GET?
AS said in the doc :
$inbound = new \Postmark\Inbound(file_get_contents('php://input'));
look at the php doc to understand what file_get_contents('php://input')) does.
And yes the postmark request is a GET.
sorry about that. I had used new \Postmark\Inbound(file_get_contents('php://input')); but was getting nothing. Then I realised that dns for my dev domain was pointing to the wrong server. My bad.
No problem.
How do I use this in a controller with my framework?
$inbound = new \Postmark\Inbound(what goes here?)