Constructor
Assigns our public and secret keys from the configuration.
API_Tinychat
__construct
()
Generate HTML
Creates the HTML to place a chat on a site.
array
generateHTML
( $room, [ $join = false], [ $nick = false], [ $change = false], [ $login = false], [ $oper = false], [ $owner = false], [ $bcast = false], [ $api = false], [ $colorbk = false], [ $tcdisplay = false], [ $autoop = false], [ $urlsuper = false], [ $langdefault = false])
-
$room
-
$join
-
$nick
-
$change
-
$login
-
$oper
-
$owner
-
$bcast
-
$api
-
$colorbk
-
$tcdisplay
-
$autoop
-
$urlsuper
-
$langdefault
List Rooms
Pulls all rooms for the API application.
array
listRooms
()
Room Info
Pulls the information for a room.
array
roomInfo
(string $room, [boolean $with_ip = false])
-
string
$room: name of the room
-
boolean
$with_ip: whether or not to include users IP addresses
Set Broadcast Password
Sets the password to allow broadcasting in the room. Only users with the correct password will be able to broadcast.
array
setBroadcastPassword
(string $room, [string $password = ''])
-
string
$room: name of the room
-
string
$password: password to use, blank for no password
Set Room Password
Sets the password for the room, only users with the correct password will be able to enter.
array
setRoomPassword
(string $room, [string $password = ''])
-
string
$room: name of the room
-
string
$password: password to use, blank for no password