TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIcbuXiaomanVaListRequest req = new AlibabaIcbuXiaomanVaListRequest();
req.setUserId("1504669025");
req.setContext("context");
req.setIdempotentId("idempotent_id");
AlibabaIcbuXiaomanVaListResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIcbuXiaomanVaListRequest req = new AlibabaIcbuXiaomanVaListRequest();
req.UserId = "1504669025";
req.Context = "context";
req.IdempotentId = "idempotent_id";
AlibabaIcbuXiaomanVaListResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIcbuXiaomanVaListRequest;
$req->setUserId("1504669025");
$req->setContext("context");
$req->setIdempotentId("idempotent_id");
$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.icbu.xiaoman.va.list' \
-d 'partner_id=apidoc' \
-d 'sign=04A677D47B6B6221ABCACC429593291D' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-22+04%3A31%3A08' \
-d 'v=2.0' \
-d 'context=context' \
-d 'idempotent_id=idempotent_id' \
-d 'user_id=1504669025'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIcbuXiaomanVaListRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.user_id="1504669025"
req.context="context"
req.idempotent_id="idempotent_id"
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.icbu.xiaoman.va.list");
add_param(pRequest,"user_id","1504669025");
add_param(pRequest,"context","context");
add_param(pRequest,"idempotent_id","idempotent_id");
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.icbu.xiaoman.va.list', {
'user_id':'1504669025',
'context':'context',
'idempotent_id':'idempotent_id'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})