Skip to content

Instantly share code, notes, and snippets.

@powdahound
Created May 5, 2011 22:54
Show Gist options
  • Save powdahound/958148 to your computer and use it in GitHub Desktop.
Save powdahound/958148 to your computer and use it in GitHub Desktop.
HipChat API message with HTML
<?php
// HipChat PHP library: https://github.com/hipchat/hipchat-php
include 'HipChat.php';
$token = "<your token>";
$room = "Development";
$message = 'Some <b>html</b>, &lt;entities&gt;, and a <a href="https://www.hipchat.com">link</a>.<br />We can even use line breaks!';
$hc = new HipChat($token);
$hc->message_room($room, 'API Test', $message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment