title: How to use Curl to Post to Miscrosoft Teams channnel
body: <p>I am trying to send a simple message to a team channel, and here's what I have tried:</p>
  
  <pre><code>$link = 'My-Link-Goes-Here';
  $curl = curl_init($link);
  
  $postfields = array(
      'text' =&gt; 'HELLO',
  );
  $postfields = json_encode($postfields);
  
  curl_setopt($curl, CURLOPT_POST, 1);
  curl_setopt($curl, CURLOPT_POSTFIELDS, $postfields);
  curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  
  $result = curl_exec($curl);
  var_dump($result);
  curl_close($curl);
  </code></pre>
  
  <p>what did i've done wrong ?</p>