public function speak($message, $roomId, $isPaste = false)
    {
        $page = '/room/'.$roomId.'/speak.json';

        if ($isPaste) {
            $type = 'PasteMessage';
        } else {
            $type = 'TextMessage';
        }

        return $this->getPageByPost($page, array('message' => array('type' => $type, 'body' => $message)));

    }
public function speak($message, $roomId, $isPaste = false)
    {
        $page = '/room/'.$roomId.'/speak.json';

        if ($isPaste) {
            $type = 'PasteMessage';
        } else {
            $type = 'TextMessage';
        }

        return $this->getPageByPost($page, array('message' => array('type' => $type, 'body' => $message)));

    }
public function speak ( $ message , $ roomId , $ isPaste = false ) { $ page = '/room/' . $ roomId . '/speak.json' ; if ( $ isPaste ) { $ type = 'PasteMessage' ; } else { $ type = 'TextMessage' ; } return $ this -> getPageByPost ( $ page , array ( 'message' => array ( 'type' => $ type , 'body' => $ message ) ) ) ; }
Send a message to a campfire room.
@param $message
@param $roomId
@param bool $isPaste
@return bool|mixed
Send a message to a campfire room .