客服QQ:300737384 点击这里给我发消息 技 术支持QQ:3007364119 点击这里给我发消息
| 返回91验证码官网
 

图片文件发送 | ApiDoc / Sendfile

方法一:上传验证码图片 <-推荐使用

const char * WINAPI SendFile(const char * pwd_str,const char * path,int type,int timeout,int custom_price,const char *remark);

 /*
说明:	上传验证码图片得到题号,如果返回值首字母为#则代表出错,重新调用即可,可循环调用多次直到调用成功
 参数列表:
	const char * pwd_str	用户答题串
	const char * path	本地图片路径
	int type		题目类型http://www.91yzm.com/help/price.php
	int timeout		超时时间(单位秒)
	int custom_price	默认传1
	const char *remark	题目要求备注(例如:字母要区分大小写)
 返回值:
	成功:返回题号
	(温馨提示:开发者只需判断返回值首字母是否为#即可,不为#则成功)
	失败:返回#开头错误ID。错误代码详见:http://www.91yzm.com/help/allErrorCode.php
*/

方法二:上传验证码数据 <-推荐使用

const char * WINAPI SendData(const char * pwd_str,const char * pData,int len,int type,int timeout,int custom_price,const char *remark);

/*
 说明:	上传验证码数据得到题号,如果返回值首字母为#则代表出错,重新调用即可,可循环调用多次直到调用成功

 参数列表:
	const char * pwd_str 	用户答题串
	const char * pData 	验证码数据
	int len 		验证码数据长度
	int type 		题目类型http://www.91yzm.com/help/price.php
	int timeout 		超时时间(单位秒)
	int custom_price	默认传1
	const char *remark 	题目要求备注(例如:字母要区分大小写)
 返回值:
	成功:返回题号
	(温馨提示:开发者只需判断返回值首字母是否为#即可,不为#则成功)
	失败:返回#开头错误ID。错误代码详见:http://www.91yzm.com/help/allErrorCode.php
 */