TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkScPublisherInfoGetRequest req = new TbkScPublisherInfoGetRequest();
req.setRelationId(2323L);
req.setPageNo(0L);
req.setPageSize(10L);
req.setInfoType(1L);
req.setRelationApp("common");
req.setSpecialId("1212");
req.setExternalId("12345");
req.setExternalType(0L);
TbkScPublisherInfoGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkScPublisherInfoGetRequest req = new TbkScPublisherInfoGetRequest();
req.RelationId = 2323L;
req.PageNo = 0L;
req.PageSize = 10L;
req.InfoType = 1L;
req.RelationApp = "common";
req.SpecialId = "1212";
req.ExternalId = "12345";
req.ExternalType = 0L;
TbkScPublisherInfoGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkScPublisherInfoGetRequest;
$req->setRelationId("2323");
$req->setPageNo("0");
$req->setPageSize("10");
$req->setInfoType("1");
$req->setRelationApp("common");
$req->setSpecialId("1212");
$req->setExternalId("12345");
$req->setExternalType("0");
$resp = $c->execute($req, $sessionKey);
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=taobao.tbk.sc.publisher.info.get' \
-d 'partner_id=apidoc' \
-d 'session=6f71b2cf-2225-4885-9ef3-c1604021a934' \
-d 'sign=CA24BCBD8BBAD181F11FD1C97D3ACCD1' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-16+00%3A54%3A07' \
-d 'v=2.0' \
-d 'external_id=12345' \
-d 'external_type=0' \
-d 'info_type=1' \
-d 'page_no=0' \
-d 'page_size=10' \
-d 'relation_app=common' \
-d 'relation_id=2323' \
-d 'special_id=1212'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkScPublisherInfoGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.relation_id=2323
req.page_no=0
req.page_size=10
req.info_type=1
req.relation_app="common"
req.special_id="1212"
req.external_id="12345"
req.external_type=0
try:
resp= req.getResponse(sessionkey)
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,"taobao.tbk.sc.publisher.info.get");
add_param(pRequest,"relation_id","2323");
add_param(pRequest,"page_no","0");
add_param(pRequest,"page_size","10");
add_param(pRequest,"info_type","1");
add_param(pRequest,"relation_app","common");
add_param(pRequest,"special_id","1212");
add_param(pRequest,"external_id","12345");
add_param(pRequest,"external_type","0");
pResponse = top_execute(pClient,pRequest,sessionKey);
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('taobao.tbk.sc.publisher.info.get', {
'relation_id':'2323',
'page_no':'0',
'page_size':'10',
'info_type':'1',
'relation_app':'common',
'special_id':'1212',
'external_id':'12345',
'external_type':'0'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})