Closed taylorkrause closed 4 weeks ago
Using the following example: ` room_api_instance = Daily::RoomsApi.new opts = { room_request: Daily::CreateRoomRequest.new( privacy: 'private', properties: Daily::RoomProperties.new({ exp: (Time.now + (3600 * 2)).to_i, # Delete the room after two hours enable_mesh_sfu: true, sfu_switchover: 0.5 }) ) }
begin room = room_api_instance.create_room(opts) p room rescue Daily::ApiError => e puts "Error when calling RoomApi->create_room: #{e}" end `
produces the following api call
room_request: Daily::CreateRoomRequest.new
should be create_room_request: Daily::CreateRoomRequest.new
Using the following example: ` room_api_instance = Daily::RoomsApi.new opts = { room_request: Daily::CreateRoomRequest.new( privacy: 'private', properties: Daily::RoomProperties.new({ exp: (Time.now + (3600 * 2)).to_i, # Delete the room after two hours enable_mesh_sfu: true, sfu_switchover: 0.5 }) ) }
begin room = room_api_instance.create_room(opts) p room rescue Daily::ApiError => e puts "Error when calling RoomApi->create_room: #{e}" end `
produces the following api call