Retrieve webhook data

Hello,

I set up webhook on a list in Trello. The callback is a php script that does this when the method is POST : 

file_put_contents("actions/".time(), var_dump($_POST));

Any file created like that doesn't contain anything. What am I doing wrong ?

1 answer

1 accepted

0 votes
Accepted answer

I can't find where to delete this, but the solution I just found is to do :

file_put_contents("actions/".time(), file_get_contents("php://input"));

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Sep 11, 2018 in Trello

There’s a Power-up for That!

So you’re using Trello at work, at home and to track your new DIY crafts. The family and co-workers are all on board and everything is organized, color coded and has a due date. But still, there’s so...

901 views 3 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you