C# Libraries browshot-csharp


The source code is available on gitbub. The latest version of the documentation is also on github.

The library comes as a Visual Studio 2012 project and works with the free Visual Studio Express 2012. You can look at the unit tests for code samples.

This is an alpha release. We will make big changes to the libraries to improve its ease of use.

using Browshot;

BrowshotClient browshot =  new BrowshotClient("API_KEY");

Hashtable arguments = new Hashtable();
arguments.Add("cache", 8600);
Dictionary<string, object> result = browshot.ScreenshotCreate("http://www.google.com/", arguments);

if (result != Null && result["status"].ToString() == "ok")
    string id = result["id"].ToString()
    Image thumbnail = browshot.Thumbnail(int.Parse(id), null);


Sign up for a free account