title: How to use trello webhook callbackURL pointing to localhost in php codeigniter?
body: <p>I have created a web-based system in codeigniter and some trello integration using its API services. I wanted to achieve something like if there is a new card created in a particular board it will also send a notification in my system that a new card is created. I started reading some documentation in trello webhooks but I just can't figure it out. Am I heading in the right way? Would it be valid if I provide a callbackURL pointing in localhost <code>callbackURL: "localhost/main_controller/trelloCallback"</code> ? However the code below returns a 400 status. Please help me. Thank you.</p>
  
  <p><strong>Javascript</strong></p>
  
  <pre><code>$.post("https://api.trello.com/1/tokens/5db4c9fbb5b2kaf8420771072b203616f3874fa92a4c57f0c796cf90819fa05c/webhooks?key=a2a93deccc7064dek5f4011c2e9810d6", {
      description: "My first webhook",
      callbackURL: "localhost/dti_infosys/main_controller/trelloCallback",
      idModel: "5a73c33ad9a2dk1b473612eb",
  });
  </code></pre>
  
  <p><strong>main_controller/trelloCallback</strong></p>
  
  <pre><code>function trelloCallback() {
      $json = file_get_contents('php://input');
      $action = json_decode($json,true);
      var_dump($action);
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/8S5kp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8S5kp.png" alt="enter image description here"></a></p>