有人使用浏览器截图的 API 吗?
我无法让 API xmlrpc 与浏览器截图一起使用,这真的很烦人。 第一种方法 $method = 'nonces.challenge'; http://api.browsershots.org/xmlrpc/nonces.challenge/
如何我是否得到了主机名,这意味着它似乎对我不利。
nonces.verifyUser 说它需要 2 个输入,而我正在使用它
$params = array();
$params[username] = 'username';
$params[encrypted_password] = 'password';
$request = xmlrpc_encode_request ($method , $params);
echo "<pre>";
print_r($request);
echo "</pre>";
$context = stream_context_create(array('http' => array(
'method' => "POST",
'header' => "Content-Type: text/xml",
'content' => $request
)));
echo "<pre>";
print_r($context);
echo "</pre>";
$file = file_get_contents($browser_shots_url, false, $context);
print_r($file);
,它说我缺少一个。我哪里出错了?
I can't get the API xmlrpc to work with browser shots its really annoying.
The first method
$method = 'nonces.challenge';
http://api.browsershots.org/xmlrpc/nonces.challenge/
How do I get the hostname that it meantions it seems just against me.
The nonces.verifyUser says it needs 2 inputs and I'm using
$params = array();
$params[username] = 'username';
$params[encrypted_password] = 'password';
$request = xmlrpc_encode_request ($method , $params);
echo "<pre>";
print_r($request);
echo "</pre>";
$context = stream_context_create(array('http' => array(
'method' => "POST",
'header' => "Content-Type: text/xml",
'content' => $request
)));
echo "<pre>";
print_r($context);
echo "</pre>";
$file = file_get_contents($browser_shots_url, false, $context);
print_r($file);
And it says I'm missing one. Where am I going wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我希望你能理解我的 perl:
你需要一个付费帐户才能以这种方式获取屏幕截图。
I hope you can grok my perl:
You'll need a paid account to obtain screenshots this way.