【芝麻信用对接】欺诈信息验证
来源:互联网 发布:专线网络 编辑:程序博客网 时间:2024/04/29 05:20
芝麻信用地址:
https://b.zmxy.com.cn/technology/openDoc.htm?relInfo=zhima.credit.antifraud.verify@1.0@1.1
优点:
不需要用户授权,有姓名,身份证号码就可以查询下是否匹配,
还可以验证手机号,银行的要素验证。
下面测试的时候,只用最简单的姓名,身份证。
官方demo:
import com.antgroup.zmxy.openplatform.api.DefaultZhimaClient;import com.antgroup.zmxy.openplatform.api.FileItem;import com.antgroup.zmxy.openplatform.api.ZhimaApiException;import com.antgroup.zmxy.openplatform.api.request.ZhimaCreditAntifraudVerifyRequest;import com.antgroup.zmxy.openplatform.api.response.ZhimaCreditAntifraudVerifyResponse;public class TestZhimaCreditAntifraudVerify { //芝麻开放平台地址 private String gatewayUrl = "https://zmopenapi.zmxy.com.cn/openapi.do"; //商户应用 Id private String appId = "***"; //商户 RSA 私钥 private String privateKey = "***"; //芝麻 RSA 公钥 private String zhimaPublicKey = "***"; public void testZhimaCreditAntifraudVerify() { ZhimaCreditAntifraudVerifyRequest req = new ZhimaCreditAntifraudVerifyRequest(); req.setChannel("apppc"); req.setPlatform("zmop"); req.setProductCode("w1010100000000002859");// 必要参数 req.setTransactionId("20151127233347987676212309253");// 必要参数 req.setCertNo("640202199007164686");// 必要参数 req.setCertType("IDENTITY_CARD");// 必要参数 req.setName("牛德华");// 必要参数 req.setMobile("15843991158");// req.setEmail("jnlxhy@alitest.com");// req.setBankCard("20110602436748024138");// req.setAddress("杭州市西湖区天目山路266号");// req.setIp("101.247.161.1");// req.setMac("44-45-53-54-00-00");// req.setWifimac("00-00-00-00-00-E0");// req.setImei("868331011992179");// DefaultZhimaClient client = new DefaultZhimaClient(gatewayUrl, appId, privateKey, zhimaPublicKey); try { ZhimaCreditAntifraudVerifyResponse response = client.execute(req); System.out.println(response.isSuccess()); System.out.println(response.getErrorCode()); System.out.println(response.getErrorMessage()); } catch (ZhimaApiException e) { e.printStackTrace(); } } public static void main(String[] args) { TestZhimaCreditAntifraudVerify result = new TestZhimaCreditAntifraudVerify(); result.testZhimaCreditAntifraudVerify(); }}
实际测试的时候。可以根据业务来选择。
测试500条,大概跑了3分钟,每秒不到3条吧,速度还行。数据还是需要验证的
阅读全文
0 0
- 【芝麻信用对接】欺诈信息验证
- 【芝麻信用对接】-decode_private_key_error
- 谈谈对接芝麻信用踩的坑
- 谈谈对接芝麻信用踩的坑
- 芝麻信用
- 芝麻信用
- 芝麻信用接口
- php对应芝麻信用点滴
- ios 获取芝麻信用分
- 浅析芝麻信用分征信体系
- 芝麻信用商家接入指南
- Java如何调用芝麻信用分?
- 【圈子】提升支付宝芝麻信用评分
- 芝麻信用分800+的技巧,get!
- 支付宝授权获取芝麻信用分数
- Android芝麻信用接入(旧版本)
- 芝麻信用分SDK接入,显示芝麻信用授权界面(Android)
- 芝麻信用分怎么提高到750+芝麻信用分暴涨攻略
- STC15系列单片机-I/O口小结
- iOS_SDK_API_使用说明
- MFC透明贴图问题
- Java 虚拟机学习( 2 ):垃圾收集算法
- 计数排序(python)
- 【芝麻信用对接】欺诈信息验证
- Guitar Pro删除的一个完整小节的操作步骤解析
- [2-sat]codeforces 875 C——National Property
- MYSQL删除表的记录后如何使ID从1开始
- ios 随机数生成
- 动态代理与AOP(7)
- 函数的声明和定义
- 为啥css这么难学?
- 基础JavaScript练习(一)总结