Create a new CompositionInstance

@param string $roomSid Twilio Room SID.
@param array|Options $options Optional Arguments
@return CompositionInstance Newly created CompositionInstance
@throws TwilioException When an HTTP error occurs.
494185
public function create($roomSid, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'RoomSid' => $roomSid,
            'VideoLayout' => Serialize::jsonObject($options['videoLayout']),
            'AudioSources' => Serialize::map($options['audioSources'], function($e) { return $e; }),
            'AudioSourcesExcluded' => Serialize::map($options['audioSourcesExcluded'], function($e) { return $e; }),
            'Resolution' => $options['resolution'],
            'Format' => $options['format'],
            'StatusCallback' => $options['statusCallback'],
            'StatusCallbackMethod' => $options['statusCallbackMethod'],
            'Trim' => Serialize::booleanToString($options['trim']),
        ));

        $payload = $this->version->create(
            'POST',
            $this->uri,
            array(),
            $data
        );

        return new CompositionInstance($this->version, $payload);
    }
25551
def room(id, &callback)
      http(:get, "/room/#{id}.json") do |data, http|
        Firering::Room.instantiate(self, data, :room, &callback)
      end
    end
1011648
public function userCopy($userId, $options=array()){

        $data = array();
        
        $data['user_id'] = $userId;

        $data = array_merge($data, $options);

        return $this->request($this->userCopyUrl, $data);
    }
13135
public function createRequest($method, $uri, array $headers = [], array $options = [])
    {
        $body = JsonRpc\json_encode($this->addIdToRequest($method, $options));

        return new Request('POST', $uri, $headers, $body === false ? null : $body);
    }
550928
public function EditReservation($roomId, $id, $data, $accessToken = null)
    {
        return $this->provider->executeRequest("POST", "/room/{$roomId}/reservation/{$id}", $accessToken ?: $this->accessToken, $data);
    }
1102856
public function insertMany($documents, array $options = [])
    {
        $writeModel = new InsertMany($documents);
        $bulkWriteResult = $this->bulkWrite([$writeModel], $options);

        return new InsertManyResult($bulkWriteResult);
    }
363323
public function init(array $options = [])
    {
        if (!$this->isOnline()) {
            return false;
        }

        // Merge $options with Config settings.
        $options = $this->mergeConfig($options);
        $room = $this->createRoom(
            $options['room_name'],
            $options['owner_user_id']
        );

        // Split the hash from the room's Guest Access URL
        $room->hipsupport_hash = $this->getHashFromUrl($room->guest_access_url);

        // Append the HipChat web client parameters.
        $room->hipsupport_url = $this->appendUrlOptions(
            $room->guest_access_url,
            $options
        );

        // Notify the given room that a new room has been created.
        $this->notify($options, $room);

        return $room;
    }
336118
protected function translateClassroomId($oldClassroomId)
    {
        $classroom = Classroom::where('name',ClassroomGroup::findOrFail($oldClassroomId)->name)->first();
        if ( $classroom != null ) {
            return $classroom->id;
        }
        throw new ClassroomNotFoundByNameException();
    }
714988
public static function create($userId, $params = null, $options = null)
    {
        return self::_userBasedCreate($userId, $params, $options);
    }
386057
public function join($rooms): self
    {
        $rooms = is_string($rooms) || is_integer($rooms) ? func_get_args() : $rooms;

        $this->room->add($this->sender, $rooms);

        return $this;
    }
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;
      }
    }
651226
public void create(String roomName, String subject, HashMap<String, String> customConfigs, List<Jid> occupants)
            throws Exception {
        MUCLightCreateIQ createMUCLightIQ = new MUCLightCreateIQ(room, roomName, occupants);

        messageCollector = connection.createStanzaCollector(fromRoomGroupChatFilter);

        try {
            connection.createStanzaCollectorAndSend(createMUCLightIQ).nextResultOrThrow();
        } catch (NotConnectedException | InterruptedException | NoResponseException | XMPPErrorException e) {
            removeConnectionCallbacks();
            throw e;
        }
    }
1357577
public function dismiss($roomId, $optParams = array()) {
      $params = array('roomId' => $roomId);
      $params = array_merge($params, $optParams);
      $data = $this->__call('dismiss', array($params));
      return $data;
    }
471162
public function set(string $id, string $content, array $options = [])
    {
        $options = array_intersect_key(self::$columns_options_def, $options) + self::$columns_options_def;
        $options['content'] = $content;
        $this->columns[$id] = $options;

        return $this;
    }
134525
public function roomEdit($room_id, $room_name = "", $room_description = "", $max_user = 0)
    {
        $url    = $this->url.'chatgroups/'.$room_id;
        $option = [
            "name"        => self::stringReplace($room_name),
            "description" => self::stringReplace($room_description),
            "maxusers"    => $max_user,
        ];
        $option = array_filter($option);
        if (empty($option)) {
            throw new EasemobError('提交修改的参数，不修改提交空！');
        }

        $access_token = $this->getToken();
        $header []    = 'Authorization: Bearer '.$access_token;

        return Http::postCurl($url, $option, $header, 'PUT');
    }
1265650
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)));

    }
416345
public function addRoom(\Ydle\HubBundle\Entity\Room $rooms)
    {
        $this->rooms[] = $rooms;

        return $this;
    }