public function roomListAction() { try { $rooms = $this->hipchat->get_rooms(); foreach ($rooms as $room) { $this->console->writeLine($room->room_id . ': ' . $room->name); } } catch (Exception $e) { $this->console->writeLine(sprintf('Rooms list did not fetch: "%s"', $e->getMessage()), Color::RED); } }
public function getRooms() { $this->verify(); return $this->hipchat->get_rooms(); }