You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can authenticate on a HipChat server/instance via XMPPHP and send one-to-one
messages, but I'm unable to send a message to a HipChat room, presumably
because HipChat's room nickname requires a space. I'm using the following:
$conn->connect();
$conn->processUntil('session_start');
// Enter the chatroom
$conn->presence(NULL, "available", "<room number>@conf.hipchat.com/Bot Name");
// Send message to chatroom - "groupchat" is required!
$conn->message("<room name>@conf.hipchat.com", "Test!", "groupchat");
// Leave the chatroom
$conn->presence(NULL, "unavailable", "<room name>@conf.hipchat.com/Bot Name");
$conn->disconnect();
I've tried Bot_Name, Bot\40Name, Bot\040Name, all to no avail. Any workarounds
recommended when a space is required in the room nickname?
Original issue reported on code.google.com by jim.goli...@gmail.com on 6 Sep 2013 at 8:29
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
jim.goli...@gmail.com
on 6 Sep 2013 at 8:29The text was updated successfully, but these errors were encountered: