TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosOspushOpenTagcodeGetRequest req = new YunosOspushOpenTagcodeGetRequest();
req.setSessionId("DX1234");
req.setTagType(1L);
req.setPageStart(0L);
req.setPageSize(100L);
req.setCondMapString("{}");
YunosOspushOpenTagcodeGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
YunosOspushOpenTagcodeGetRequest req = new YunosOspushOpenTagcodeGetRequest();
req.SessionId = "DX1234";
req.TagType = 1L;
req.PageStart = 0L;
req.PageSize = 100L;
req.CondMap = "{}";
YunosOspushOpenTagcodeGetResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new YunosOspushOpenTagcodeGetRequest;
$req->setSessionId("DX1234");
$req->setTagType("1");
$req->setPageStart("0");
$req->setPageSize("100");
$req->setCondMap("{}");
$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=yunos.ospush.open.tagcode.get' \
-d 'partner_id=apidoc' \
-d 'sign=240336B002455C9AA111DE0640F6FBBB' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-25+17%3A18%3A55' \
-d 'v=2.0' \
-d 'cond_map=%7B%7D' \
-d 'page_size=100' \
-d 'page_start=0' \
-d 'session_id=DX1234' \
-d 'tag_type=1'
# -*- coding: utf-8 -*-
import top.api
req=top.api.YunosOspushOpenTagcodeGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.session_id="DX1234"
req.tag_type=1
req.page_start=0
req.page_size=100
req.cond_map="{}"
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,"yunos.ospush.open.tagcode.get");
add_param(pRequest,"session_id","DX1234");
add_param(pRequest,"tag_type","1");
add_param(pRequest,"page_start","0");
add_param(pRequest,"page_size","100");
add_param(pRequest,"cond_map","{}");
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('yunos.ospush.open.tagcode.get', {
'session_id':'DX1234',
'tag_type':'1',
'page_start':'0',
'page_size':'100',
'cond_map':'{}'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})