TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSecurityJaqRpCloudUploadRequest req = new AlibabaSecurityJaqRpCloudUploadRequest();
req.setVerifyToken("123123123");
List<AlibabaSecurityJaqRpCloudUploadRequest.Elements> list2 = new ArrayList<AlibabaSecurityJaqRpCloudUploadRequest.Elements>();
AlibabaSecurityJaqRpCloudUploadRequest.Elements obj3 = new AlibabaSecurityJaqRpCloudUploadRequest.Elements();
list2.add(obj3);
obj3.setValueMeta("ValueType");
obj3.setValue("http://xxx.jpg");
obj3.setName("Identity_Front_Pic");
req.setElements(list2);
AlibabaSecurityJaqRpCloudUploadResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaSecurityJaqRpCloudUploadRequest req = new AlibabaSecurityJaqRpCloudUploadRequest();
req.VerifyToken = "123123123";
List<AlibabaSecurityJaqRpCloudUploadRequest.ElementsDomain> list2 = new List<AlibabaSecurityJaqRpCloudUploadRequest.ElementsDomain>();
AlibabaSecurityJaqRpCloudUploadRequest.ElementsDomain obj3 = new AlibabaSecurityJaqRpCloudUploadRequest.ElementsDomain();
list2.Add(obj3);
obj3.ValueMeta = "ValueType";
obj3.Value = "http://xxx.jpg";
obj3.Name = "Identity_Front_Pic";
req.Elements_ = list2;
AlibabaSecurityJaqRpCloudUploadResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaSecurityJaqRpCloudUploadRequest;
$req->setVerifyToken("123123123");
$elements = new Elements;
$elements->value_meta="ValueType";
$elements->value="http://xxx.jpg";
$elements->name="Identity_Front_Pic";
$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.cloud.upload' \
-d 'partner_id=apidoc' \
-d 'sign=48E783BC457BA97C3A59AD06C0018C2F' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-03+21%3A43%3A37' \
-d 'v=2.0' \
-d 'elements=null' \
-d 'verify_token=123123123'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaSecurityJaqRpCloudUploadRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.verify_token="123123123"
req.elements=""
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.cloud.upload");
add_param(pRequest,"verify_token","123123123");
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.cloud.upload', {
'verify_token':'123123123',
'elements':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})