public void Run() { List <Collection> collections = _sketchFabApi.GetMyCollectionsAsync(_sketchFabToken, TokenType.Token).GetAwaiter().GetResult(); if (collections.Any(c => c.name == "Helladic Tests")) { } UploadModelRequest upload = new UploadModelRequest() { Description = "TEST",// * Generated by [DEM Net Elevation API](https://elevationapi.com)\n* Helladic test upload", FilePath = Path.Combine(Directory.GetCurrentDirectory(), "Sketchfab", "C1410_OsmTopo.glb"), IsInspectable = true, IsPrivate = false, IsPublished = false, Name = "C1410_OsmTopo TEST", Options = new ModelOptions() { Background = SkecthFabEnvironment.Footprint_Court, Shading = ShadingType.lit } }; var uuid = _sketchFabApi.UploadModelAsync(upload, _sketchFabToken).GetAwaiter().GetResult(); }