TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSecurityJaqCaptchaAudioSendRequest req = new AlibabaSecurityJaqCaptchaAudioSendRequest();
req.setExtendData("{'extendKey': 'extendValue'}");
req.setInfoToken("57a5c6ce-06c6-11e6-8ba5-a0d3c1f1fdf4");
req.setProtocolVersion("1.0");
req.setRsign("a3a6c0de6db6c85d1ec183e95f082f08");
req.setRtkenIndex("c2607d757dcad439b94349e99fc6bab8");
req.setUtoken("Uk/41dHvLE4DALlys7tWlJuq");
AlibabaSecurityJaqCaptchaAudioSendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaSecurityJaqCaptchaAudioSendRequest req = new AlibabaSecurityJaqCaptchaAudioSendRequest();
req.ExtendData = "{'extendKey': 'extendValue'}";
req.InfoToken = "57a5c6ce-06c6-11e6-8ba5-a0d3c1f1fdf4";
req.ProtocolVersion = "1.0";
req.Rsign = "a3a6c0de6db6c85d1ec183e95f082f08";
req.RtkenIndex = "c2607d757dcad439b94349e99fc6bab8";
req.Utoken = "Uk/41dHvLE4DALlys7tWlJuq";
AlibabaSecurityJaqCaptchaAudioSendResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaSecurityJaqCaptchaAudioSendRequest;
$req->setExtendData("{'extendKey': 'extendValue'}");
$req->setInfoToken("57a5c6ce-06c6-11e6-8ba5-a0d3c1f1fdf4");
$req->setProtocolVersion("1.0");
$req->setRsign("a3a6c0de6db6c85d1ec183e95f082f08");
$req->setRtkenIndex("c2607d757dcad439b94349e99fc6bab8");
$req->setUtoken("Uk/41dHvLE4DALlys7tWlJuq");
$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.captcha.audio.send' \
-d 'partner_id=apidoc' \
-d 'sign=0D9522FFEF92735CE9F71654ECDA4DF3' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-03+21%3A46%3A03' \
-d 'v=2.0' \
-d 'extend_data=%7B%27extendKey%27%3A+%27extendValue%27%7D' \
-d 'info_token=57a5c6ce-06c6-11e6-8ba5-a0d3c1f1fdf4' \
-d 'protocol_version=1.0' \
-d 'rsign=a3a6c0de6db6c85d1ec183e95f082f08' \
-d 'rtken_index=c2607d757dcad439b94349e99fc6bab8' \
-d 'utoken=Uk%2F41dHvLE4DALlys7tWlJuq'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaSecurityJaqCaptchaAudioSendRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.extend_data="{'extendKey': 'extendValue'}"
req.info_token="57a5c6ce-06c6-11e6-8ba5-a0d3c1f1fdf4"
req.protocol_version="1.0"
req.rsign="a3a6c0de6db6c85d1ec183e95f082f08"
req.rtken_index="c2607d757dcad439b94349e99fc6bab8"
req.utoken="Uk/41dHvLE4DALlys7tWlJuq"
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.captcha.audio.send");
add_param(pRequest,"extend_data","{'extendKey': 'extendValue'}");
add_param(pRequest,"info_token","57a5c6ce-06c6-11e6-8ba5-a0d3c1f1fdf4");
add_param(pRequest,"protocol_version","1.0");
add_param(pRequest,"rsign","a3a6c0de6db6c85d1ec183e95f082f08");
add_param(pRequest,"rtken_index","c2607d757dcad439b94349e99fc6bab8");
add_param(pRequest,"utoken","Uk/41dHvLE4DALlys7tWlJuq");
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.captcha.audio.send', {
'extend_data':'{'extendKey': 'extendValue'}',
'info_token':'57a5c6ce-06c6-11e6-8ba5-a0d3c1f1fdf4',
'protocol_version':'1.0',
'rsign':'a3a6c0de6db6c85d1ec183e95f082f08',
'rtken_index':'c2607d757dcad439b94349e99fc6bab8',
'utoken':'Uk/41dHvLE4DALlys7tWlJuq'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})