翔云身份证实名认证接口将与网络平台携手共筑信息安全防线,守护每一笔交易的真实可信,助力您的企业在数字化浪潮中稳健前行!
以下是javascript语言调用翔云身份证实名认证API的代码:
var form = new FormData();
form.append("img", "/9j");
form.append("key", "M***********g");
form.append("secret", "3***********6");
form.append("idenNo", "13***************3");
form.append("trueName", "陈**");
form.append("typeId", "3003");
form.append("format", "json");
var settings = {
"url": "https://netocr.com/verapi/veriden.do",
"method": "POST",
"timeout": 0,
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
标签:form,javascript,认证,实名,身份证,append
From: https://www.cnblogs.com/netocr/p/18072811