TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSecurityJaqRpUploadRequest req = new AlibabaSecurityJaqRpUploadRequest();
req.setVerifyToken("2041ed4e70224499972c4f37b28fb40e");
List<AlibabaSecurityJaqRpUploadRequest.Element> list2 = new ArrayList<AlibabaSecurityJaqRpUploadRequest.Element>();
AlibabaSecurityJaqRpUploadRequest.Element obj3 = new AlibabaSecurityJaqRpUploadRequest.Element();
list2.add(obj3);
obj3.setName("Identity_Code");
obj3.setValue("330322198809089223");
obj3.setValueMeta("ValueType");
req.setElements(list2);
AlibabaSecurityJaqRpUploadResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaSecurityJaqRpUploadRequest req = new AlibabaSecurityJaqRpUploadRequest();
req.VerifyToken = "2041ed4e70224499972c4f37b28fb40e";
List<AlibabaSecurityJaqRpUploadRequest.ElementDomain> list2 = new List<AlibabaSecurityJaqRpUploadRequest.ElementDomain>();
AlibabaSecurityJaqRpUploadRequest.ElementDomain obj3 = new AlibabaSecurityJaqRpUploadRequest.ElementDomain();
list2.Add(obj3);
obj3.Name = "Identity_Code";
obj3.Value = "330322198809089223";
obj3.ValueMeta = "ValueType";
req.Elements_ = list2;
AlibabaSecurityJaqRpUploadResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaSecurityJaqRpUploadRequest;
$req->setVerifyToken("2041ed4e70224499972c4f37b28fb40e");
$elements = new Element;
$elements->name="Identity_Code";
$elements->value="330322198809089223";
$elements->value_meta="ValueType";
$req->setElements(json_encode($elements));
$resp = $c->execute($req);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=alibaba.security.jaq.rp.upload' \
-d 'partner_id=apidoc' \
-d 'sign=359F1FD8A23273829540756B97F0E297' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-23+15%3A00%3A42' \
-d 'v=2.0' \
-d 'elements=%7B%22name%22%3A+%22Identity_Front_Pic%22%2C+++%22value%22%3A+%22abc.jpg%22%2C+++%22value_meta%22%3A+%22photoType%22+%7D%2C+%7B+%22name%22%3A+%22Name%22%2C+++%22value%22%3A+%22%E9%87%87%E6%9E%9C%22%2C+++%22value_meta%22%3A+%22valueType%22+%7D' \
-d 'verify_token=2041ed4e70224499972c4f37b28fb40e'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaSecurityJaqRpUploadRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.verify_token="2041ed4e70224499972c4f37b28fb40e"
req.elements="[{"name": "Identity_Front_Pic", "value": "abc.jpg", "value_meta": "photoType" }, { "name": "Name", "value": "采果", "value_meta": "valueType" }]"
try:
resp= req.getResponse()
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"alibaba.security.jaq.rp.upload");
add_param(pRequest,"verify_token","2041ed4e70224499972c4f37b28fb40e");
add_param(pRequest,"elements","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,NULL);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.security.jaq.rp.upload', {
'verify_token':'2041ed4e70224499972c4f37b28fb40e',
'elements':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})