Hi,
Here is a sample usage of the API :
BrowserStack bs = BrowserStackFactory.getBrowserStack("YouName", "YourAPIKEY");
List<os> mylist = bs.getBrowsers(false, false);
Map<string, string=""> parameters = new HashMap<string, string="">();
parameters.put("os", "Windows");
parameters.put("os_version", "7");
parameters.put("browser", "opera");
parameters.put("browser_version", "10.6");
parameters.put("url", "https://github.com/404");
System.out.println(Integer.parseInt(bs.postWorker(parameters)));
//check status before calling this
// bs.captureScreenshot(20475670, FileFormat.PNG, "C:\Shubham\newfile.png");
List<status> list = bs.getAllStatus();</status></string,></string,></os>
Please note, the API might throw runtime exceptions in case something goes wrong with Browser Stack. Also it has the ver. 3.0 of the API hardcoded into it. This will be removed in the later versions.