获取一个聊天室详情

@param $room_id

@return mixed
355561
public function room($room_id)
    {
        $url          = $this->url.'chatrooms/'.$room_id;
        $option       = [];
        $access_token = $this->getToken();
        $header []    = 'Authorization: Bearer '.$access_token;

        return Http::postCurl($url, $option, $header, 'GET');
    }
1230014
public function getRoomId()
    {
        if (!$this->isRoomEvent()) {
            throw new InvalidEventSourceException('This event source is not a room type');
        }
        return isset($this->event['source']['roomId'])
            ? $this->event['source']['roomId']
            : null;
    }
647900
def subscriptions_get_one(self, room_id, **kwargs):
        """"""
        return self.__call_api_get('subscriptions.getOne', roomId=room_id, kwargs=kwargs)
101714
def part(room)
      room_object = find_room(room)

      if room_object
        redis.srem("persisted_rooms", room_object.id)
        adapter.part(room_object.id)
      else
        adapter.part(room)
      end
    end
675788
public function kickUser($appId, $roomName, $userId)
    {
        $url = sprintf("%s/%s/rooms/%s/users/%s", $this->baseURL, $appId, $roomName, $userId);
        list(, $err)  = $this->delete($url);
        return $err;
    }
549509
public function roomDelUsers($room_id, $users)
    {
        $url          = $this->url.'chatrooms/'.$room_id.'/users/'.implode(',', $users);
        $option       = [];
        $access_token = $this->getToken();
        $header []    = 'Authorization: Bearer '.$access_token;

        return Http::postCurl($url, $option, $header, 'DELETE');
    }
196555
def [](id)
      return @rooms[id] if id.start_with? '!'

      if id.start_with? '#'
        res = @rooms.find { |_, r| r.canonical_alias == id }
        return res.last if res.respond_to? :last
      end

      res = @rooms.find { |_, r| r.name == id }
      res.last if res.respond_to? :last
    end
176276
async def fetch_room(self, room_id):
        """"""
        url = "https://production.plum.technology/v2/getRoom"
        data = {"rid": room_id}
        return await self.__post(url, data)
817182
public function decline($roomId, $optParams = array()) {
      $params = array('roomId' => $roomId);
      $params = array_merge($params, $optParams);
      $data = $this->__call('decline', array($params));
      if ($this->useObjects()) {
        return new Room($data);
      } else {
        return $data;
      }
    }
326204
function() {
            self._client.roomState(roomId).then(function(events) {
                events.forEach(function(ev) {
                    if (self._eventTypes[ev.type]) {
                        if (!r.events[ev.type]) {
                            r.events[ev.type] = {};
                        }
                        r.events[ev.type][ev.state_key] = ev;
                    }
                });
                resolve(r);
            }, function(err) {
                if (err.httpStatus >= 400 && err.httpStatus < 600) { // 4xx, 5xx
                    reject(err); // don't have permission, don't retry.
                }
                // wait a bit then try again
                Promise.delay(3000).then(function() {
                    if (!self._dict[roomId]) {
                        return;
                    }

                    queryRoomState();
                });
            });
        }
1239799
def get_state_event(self, room_id, event_type):
        
        return self._send("GET", "/rooms/{}/state/{}".format(quote(room_id), event_type))
1287514
public function join($roomId){
		$data = $this->reqdata();
        $data['nick'] = $this->endpoint->nick; 
		return $this->request("rooms/{$roomId}/join", $data, 'POST');
	}
610335
def _mkroom(self, room_id: str) -> Room:
        
        if room_id not in self.rooms:
            self.rooms[room_id] = Room(self, room_id)
        room = self.rooms[room_id]
        if not room.canonical_alias:
            room.update_aliases()
        return room
120853
public function getDeclaringMethodId($method_id)
    {
        $method_id = strtolower($method_id);

        list($fq_class_name, $method_name) = explode('::', $method_id);

        $fq_class_name = $this->classlikes->getUnAliasedName($fq_class_name);

        $class_storage = $this->classlike_storage_provider->get($fq_class_name);

        if (isset($class_storage->declaring_method_ids[$method_name])) {
            return $class_storage->declaring_method_ids[$method_name];
        }

        if ($class_storage->abstract && isset($class_storage->overridden_method_ids[$method_name])) {
            return $class_storage->overridden_method_ids[$method_name][0];
        }
    }
369943
@SuppressWarnings("unchecked")
    @Override
    public <T> T by(int id) {
        Room sfsRoom = extension.getParentZone().getRoomById(id);
        if(sfsRoom == null) return null;
        return (T) sfsRoom.getProperty(APIKey.ROOM);
    }
345221
def isInRoom(self, _id):
        
        if SockJSRoomHandler._room.has_key(self._gcls() + _id):
            if self in SockJSRoomHandler._room[self._gcls() + _id]:
                return True
        return False
134691
def join_room(self, room_id_or_alias):
        
        response = self.api.join_room(room_id_or_alias)
        room_id = (
            response["room_id"] if "room_id" in response else room_id_or_alias
        )
        return self._mkroom(room_id)