using System; using System.IO; using Browshot; class Example { static void Main() { var client = new BrowshotClient(Environment.GetEnvironmentVariable("BROWSHOT_API_KEY")); var html = client.ScreenshotHtml(1103982291, null); if (html == null) throw new InvalidOperationException("HTML download failed"); File.WriteAllText("capture.html", html); } }