TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
QimenItemsMarkingRequest req = new QimenItemsMarkingRequest();
req.setActionType("ADD");
req.setTagType("TBKU");
req.setItemIds("12345");
req.setRemark("备注");
QimenItemsMarkingResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
QimenItemsMarkingRequest req = new QimenItemsMarkingRequest();
req.ActionType = "ADD";
req.TagType = "TBKU";
req.ItemIds = "12345";
req.Remark = "备注";
QimenItemsMarkingResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new QimenItemsMarkingRequest;
$req->setActionType("ADD");
$req->setTagType("TBKU");
$req->setItemIds("12345");
$req->setRemark("备注");
$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.qimen.items.marking' \
-d 'partner_id=apidoc' \
-d 'session=4faf0380-9561-48d9-ab2d-e4aa0b21b303' \
-d 'sign=A9FF3AF6615A963A509B39BF7C3BD2DE' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-24+16%3A13%3A29' \
-d 'v=2.0' \
-d 'action_type=ADD' \
-d 'item_ids=12345' \
-d 'remark=%E5%A4%87%E6%B3%A8' \
-d 'tag_type=TBKU'
# -*- coding: utf-8 -*-
import top.api
req=top.api.QimenItemsMarkingRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.action_type="ADD"
req.tag_type="TBKU"
req.item_ids="12345"
req.remark="备注"
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.qimen.items.marking");
add_param(pRequest,"action_type","ADD");
add_param(pRequest,"tag_type","TBKU");
add_param(pRequest,"item_ids","12345");
add_param(pRequest,"remark","备注");
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.qimen.items.marking', {
'action_type':'ADD',
'tag_type':'TBKU',
'item_ids':'12345',
'remark':'备注'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})