TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoCntecLocallifeCommunitylifeCreaterecycleorderRequest req = new CainiaoCntecLocallifeCommunitylifeCreaterecycleorderRequest();
req.setOutOrderId("xxx");
req.setStationId(123456L);
req.setMobile("12345678910");
req.setUserId("xxx");
req.setUserNick("xxx");
req.setUserType("xxx");
req.setBizType("xxx");
req.setFeature("{}");
CainiaoCntecLocallifeCommunitylifeCreaterecycleorderResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
CainiaoCntecLocallifeCommunitylifeCreaterecycleorderRequest req = new CainiaoCntecLocallifeCommunitylifeCreaterecycleorderRequest();
req.OutOrderId = "xxx";
req.StationId = 123456L;
req.Mobile = "12345678910";
req.UserId = "xxx";
req.UserNick = "xxx";
req.UserType = "xxx";
req.BizType = "xxx";
req.Feature = "{}";
CainiaoCntecLocallifeCommunitylifeCreaterecycleorderResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new CainiaoCntecLocallifeCommunitylifeCreaterecycleorderRequest;
$req->setOutOrderId("xxx");
$req->setStationId("123456");
$req->setMobile("12345678910");
$req->setUserId("xxx");
$req->setUserNick("xxx");
$req->setUserType("xxx");
$req->setBizType("xxx");
$req->setFeature("{}");
$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=cainiao.cntec.locallife.communitylife.createrecycleorder' \
-d 'partner_id=apidoc' \
-d 'sign=10E6DBDAE3CFE8670F62CA1389798C5D' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-28+18%3A01%3A28' \
-d 'v=2.0' \
-d 'biz_type=xxx' \
-d 'feature=%7B%7D' \
-d 'mobile=12345678910' \
-d 'out_order_id=xxx' \
-d 'station_id=123456' \
-d 'user_id=xxx' \
-d 'user_nick=xxx' \
-d 'user_type=xxx'
# -*- coding: utf-8 -*-
import top.api
req=top.api.CainiaoCntecLocallifeCommunitylifeCreaterecycleorderRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.out_order_id="xxx"
req.station_id=123456
req.mobile="12345678910"
req.user_id="xxx"
req.user_nick="xxx"
req.user_type="xxx"
req.biz_type="xxx"
req.feature="{}"
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,"cainiao.cntec.locallife.communitylife.createrecycleorder");
add_param(pRequest,"out_order_id","xxx");
add_param(pRequest,"station_id","123456");
add_param(pRequest,"mobile","12345678910");
add_param(pRequest,"user_id","xxx");
add_param(pRequest,"user_nick","xxx");
add_param(pRequest,"user_type","xxx");
add_param(pRequest,"biz_type","xxx");
add_param(pRequest,"feature","{}");
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('cainiao.cntec.locallife.communitylife.createrecycleorder', {
'out_order_id':'xxx',
'station_id':'123456',
'mobile':'12345678910',
'user_id':'xxx',
'user_nick':'xxx',
'user_type':'xxx',
'biz_type':'xxx',
'feature':'{}'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})