Created
May 5, 2011 22:54
-
-
Save powdahound/958148 to your computer and use it in GitHub Desktop.
HipChat API message with HTML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// HipChat PHP library: https://github.com/hipchat/hipchat-php | |
include 'HipChat.php'; | |
$token = "<your token>"; | |
$room = "Development"; | |
$message = 'Some <b>html</b>, <entities>, 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