TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscUnionSupplyOuterItemShareRequest req = new AlibabaAlscUnionSupplyOuterItemShareRequest();
AlibabaAlscUnionSupplyOuterItemShareRequest.OuterItemShareRequest obj1 = new AlibabaAlscUnionSupplyOuterItemShareRequest.OuterItemShareRequest();
obj1.setScene("tb_xxx");
obj1.setObjectId("0DE2606D93414EE8ECD84D49995A66D8");
obj1.setObjectType(16L);
obj1.setPid("pid");
obj1.setTkPromotionUrl("http:/xxx");
obj1.setSid("sid");
req.setQueryRequest(obj1);
AlibabaAlscUnionSupplyOuterItemShareResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlscUnionSupplyOuterItemShareRequest req = new AlibabaAlscUnionSupplyOuterItemShareRequest();
AlibabaAlscUnionSupplyOuterItemShareRequest.OuterItemShareRequestDomain obj1 = new AlibabaAlscUnionSupplyOuterItemShareRequest.OuterItemShareRequestDomain();
obj1.Scene = "tb_xxx";
obj1.ObjectId = "0DE2606D93414EE8ECD84D49995A66D8";
obj1.ObjectType = 16L;
obj1.Pid = "pid";
obj1.TkPromotionUrl = "http:/xxx";
obj1.Sid = "sid";
req.QueryRequest_ = obj1;
AlibabaAlscUnionSupplyOuterItemShareResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlscUnionSupplyOuterItemShareRequest;
$query_request = new OuterItemShareRequest;
$query_request->scene="tb_xxx";
$query_request->object_id="0DE2606D93414EE8ECD84D49995A66D8";
$query_request->object_type="16";
$query_request->pid="pid";
$query_request->tk_promotion_url="http:/xxx";
$query_request->sid="sid";
$req->setQueryRequest(json_encode($query_request));
$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.alsc.union.supply.outer.item.share' \
-d 'partner_id=apidoc' \
-d 'sign=00D113BB75A5334B72D92412CDB7D0CB' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-27+23%3A03%3A31' \
-d 'v=2.0' \
-d 'query_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlscUnionSupplyOuterItemShareRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.query_request="数据结构示例JSON格式"
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.alsc.union.supply.outer.item.share");
add_param(pRequest,"query_request","数据结构JSON示例");
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.alsc.union.supply.outer.item.share', {
'query_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})