为了从代理后面使用GrabzIt,必须指定代理连接设置。 为了使之更加简单,我们在下面做了一个向导。 只需在下面的表格中输入代理详细信息,然后按 产生 按钮创建代理地址。 如果要从世界其他地方的代理服务器获取屏幕截图,则需要遵循 这些说明.
在上面生成代理地址后,下面将为我们当前支持本地代理的每种编程语言显示一个使用本地代理的示例。 JavaScript API不会生效,因为其所有请求都将通过浏览器进行。
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret"); grabzIt.SetLocalProxy(""); grabzIt.URLToImage("http://www.spacex.com"); grabzIt.Save("http://www.example.com/Home/Handler");
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret"); grabzIt.SetLocalProxy(""); grabzIt.URLToImage("http://www.spacex.com"); grabzIt.Save("http://www.example.com/handler");
var grabzit = require('grabzit'); var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret"); client.set_local_proxy(""); client.url_to_image("http://www.spacex.com"); client.save("http://www.example.com/handler", function (error, id){ if (error != null){ throw error; } });
$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret"); $grabzIt->SetLocalProxy(""); $grabzIt->URLToImage("http://www.spacex.com"); $grabzIt->Save("http://www.example.com/handler.php");
grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret") grabzIt.SetLocalProxy("") grabzIt.URLToImage("http://www.spacex.com") grabzIt.Save("http://www.example.com/handler.py")
grabzIt = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret") grabzIt.set_local_proxy("") grabzIt.url_to_image("http://www.spacex.com") grabzItClient.save("http://www.example.com/handler/index")