using System; using System.Collections; using System.Drawing.Imaging; using Browshot; class Example { static void Main() { var client = new BrowshotClient(Environment.GetEnvironmentVariable("BROWSHOT_API_KEY")); using (var image = client.Simple("https://example.com/", new Hashtable { { "country", "in" }, { "device", "iphone_15_pro" } })) { if (image == null) throw new InvalidOperationException("Image download failed"); image.Save("capture.png", ImageFormat.Png); } } }