title: Receiving webhook data and save them in db
body: <p>I want to handle data, that is sended by a trello webhook.
  There for the webhook posts to a url like site.com/tracker.php</p>
  
  <p>In the tracker.php I want to save the data in a database. For that I need to get some params.</p>
  
  <p>This is a example of the code I receive (<a href="https://trello.com/docs/gettingstarted/webhooks.html" rel="noreferrer">https://trello.com/docs/gettingstarted/webhooks.html</a>):</p>
  
  <pre><code>{
     "action": {
        "id":"51f9424bcd6e040f3c002412",
        "idMemberCreator":"4fc78a59a885233f4b349bd9",
        "data": {
           "board": {
              "name":"Trello Development",
              "id":"4d5ea62fd76aa1136000000c"
           },
           "card": {
              "idShort":1458,
              "name":"Webhooks",
              "id":"51a79e72dbb7e23c7c003778"
           },
           "voted":true
        },
        "type":"voteOnCard",
        "date":"2013-07-31T16:58:51.949Z",
        "memberCreator": {
           "id":"4fc78a59a885233f4b349bd9",
           "avatarHash":"2da34d23b5f1ac1a20e2a01157bfa9fe",
           "fullName":"Doug Patti",
           "initials":"DP",
           "username":"doug"
        }
     },
     "model": {
        "id":"4d5ea62fd76aa1136000000c",
        "name":"Trello Development",
        "desc":"Trello board used by the Trello team to track work on Trello.  How meta!\n\nThe development of the Trello API is being tracked at https://trello.com/api\n\nThe development of Trello Mobile applications is being tracked at https://trello.com/mobile",
        "closed":false,
        "idOrganization":"4e1452614e4b8698470000e0",
        "pinned":true,
        "url":"https://trello.com/b/nC8QJJoZ/trello-development",
        "prefs": {
           "permissionLevel":"public",
           "voting":"public",
           "comments":"public",
           "invitations":"members",
           "selfJoin":false,
           "cardCovers":true,
           "canBePublic":false,
           "canBeOrg":false,
           "canBePrivate":false,
           "canInvite":true
        },
        "labelNames": {
           "yellow":"Infrastructure",
           "red":"Bug",
           "purple":"Repro'd",
           "orange":"Feature",
           "green":"Mobile",
           "blue":"Verified"
        }
     }
  }
  </code></pre>
  
  <p>And this is my current tracker.php file:</p>
  
  <pre><code>&lt;?php
  
  $json = $_POST["actions"];
  $action = json_decode($json);
  $action_id = $action-&gt;id;
  $card_id = $action-&gt;data-&gt;card-&gt;id;
  var_dump($array);
  </code></pre>
  
  <p>My questions:</p>
  
  <ul>
  <li>Is the $_POST["actions"] right? Or what do I need inside the []</li>
  <li>Is the way I want to get the $action->data->card->id right?</li>
  <li>Is there any way to see the result of the var_dump? Dont know how to see the result of an webhook post..</li>
  </ul>