好用的打码平台推荐

推荐平台: http://www.ruokuai.com/json

选择的缘由是 客服到位,有专业技术解决问题,api文档以及Demo详尽。测试了几个没有问题windows

官方demoapi

$damaUrl = 'http://api.ruokuai.com/create.json';
$filename = dirname(__FILE__).'/img.png';	//img.jpg是测试用的打码图片,4位的字母数字混合码,windows下的PHP环境这里须要填写完整路径
$ch = curl_init();
$postFields = array('username' => 'XXX',
					'password' => 'XX',
					'typeid' => 3040,	//4位的字母数字混合码   类型表http://www.ruokuai.com/pricelist.aspx
					'timeout' => 60,	//中文以及选择题类型须要设置更高的超时时间建议90以上
					'softid' => XX,		//改为你本身的
					'softkey' => 'XX',	//改为你本身的
					'image' => '@'.$filename
				   );

curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_URL,$damaUrl);
curl_setopt($ch, CURLOPT_TIMEOUT, 65);	//设置本机的post请求超时时间,若是timeout参数设置60 这里至少设置65
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields);

$result = curl_exec($ch);

curl_close($ch);

var_dump($result);
相关文章
相关标签/搜索