TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSeakingDiagnosistitleRequest req = new AlibabaSeakingDiagnosistitleRequest();
req.setCategoryId(1L);
AlibabaSeakingDiagnosistitleRequest.Extra obj1 = new AlibabaSeakingDiagnosistitleRequest.Extra();
obj1.setPlatform("ae");
obj1.setProductId("1");
obj1.setSubIdentifier("cnxxxx");
obj1.setSubIdentifyType("ae");
req.setExtra(obj1);
req.setIdentifier("1");
req.setIdentifierType("alibaba");
req.setLanguage("en");
req.setPlatform("ae");
req.setTitle("mp3");
AlibabaSeakingDiagnosistitleResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaSeakingDiagnosistitleRequest req = new AlibabaSeakingDiagnosistitleRequest();
req.CategoryId = 1L;
AlibabaSeakingDiagnosistitleRequest.ExtraDomain obj1 = new AlibabaSeakingDiagnosistitleRequest.ExtraDomain();
obj1.Platform = "ae";
obj1.ProductId = "1";
obj1.SubIdentifier = "cnxxxx";
obj1.SubIdentifyType = "ae";
req.Extra_ = obj1;
req.Identifier = "1";
req.IdentifierType = "alibaba";
req.Language = "en";
req.Platform = "ae";
req.Title = "mp3";
AlibabaSeakingDiagnosistitleResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaSeakingDiagnosistitleRequest;
$req->setCategoryId("1");
$extra = new Extra;
$extra->platform="ae";
$extra->product_id="1";
$extra->sub_identifier="cnxxxx";
$extra->sub_identify_type="ae";
$req->setExtra(json_encode($extra));
$req->setIdentifier("1");
$req->setIdentifierType("alibaba");
$req->setLanguage("en");
$req->setPlatform("ae");
$req->setTitle("mp3");
$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.seaking.diagnosistitle' \
-d 'partner_id=apidoc' \
-d 'sign=66E9E5444DD5AE715354A606C1FF7481' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+17%3A11%3A49' \
-d 'v=2.0' \
-d 'category_id=1' \
-d 'extra=null' \
-d 'identifier=1' \
-d 'identifier_type=alibaba' \
-d 'language=en' \
-d 'platform=ae' \
-d 'title=mp3'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaSeakingDiagnosistitleRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.category_id=1
req.extra=""
req.identifier="1"
req.identifier_type="alibaba"
req.language="en"
req.platform="ae"
req.title="mp3"
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.seaking.diagnosistitle");
add_param(pRequest,"category_id","1");
add_param(pRequest,"extra","数据结构JSON示例");
add_param(pRequest,"identifier","1");
add_param(pRequest,"identifier_type","alibaba");
add_param(pRequest,"language","en");
add_param(pRequest,"platform","ae");
add_param(pRequest,"title","mp3");
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.seaking.diagnosistitle', {
'category_id':'1',
'extra':'数据结构JSON示例',
'identifier':'1',
'identifier_type':'alibaba',
'language':'en',
'platform':'ae',
'title':'mp3'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})