TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoPickupBusinessPlatformCallguoguoRequest req = new CainiaoPickupBusinessPlatformCallguoguoRequest();
req.setOrderRealOwnerId("13578343");
req.setOrderRealOwnerMobile("13817747777");
req.setOrderRealContactId("13578343");
req.setOrderRealContactMobile("13817747777");
List<CainiaoPickupBusinessPlatformCallguoguoRequest.GuoGuoPackageInfo> list2 = new ArrayList<CainiaoPickupBusinessPlatformCallguoguoRequest.GuoGuoPackageInfo>();
CainiaoPickupBusinessPlatformCallguoguoRequest.GuoGuoPackageInfo obj3 = new CainiaoPickupBusinessPlatformCallguoguoRequest.GuoGuoPackageInfo();
list2.add(obj3);
obj3.setItemTitle("华为手机");
obj3.setPackageId("包裹号");
CainiaoPickupBusinessPlatformCallguoguoRequest.BusinessCustomer obj5 = new CainiaoPickupBusinessPlatformCallguoguoRequest.BusinessCustomer();
obj5.setAreaId("311200");
obj5.setFullAddressDetail("浙江省杭州市网商路699号");
obj5.setMobile("13817747777");
obj5.setName("张三");
list4.setReceiver(obj5);
CainiaoPickupBusinessPlatformCallguoguoRequest.BusinessCustomer obj7 = new CainiaoPickupBusinessPlatformCallguoguoRequest.BusinessCustomer();
obj7.setAreaId("311200");
obj7.setFullAddressDetail("浙江省杭州市网商路966号");
obj7.setMobile("13817747777");
obj7.setName("李四");
list6.setSender(obj7);
obj3.setWeight(1000L);
obj3.setCouponId("1000");
req.setParamList(list2);
CainiaoPickupBusinessPlatformCallguoguoRequest.BusinessProperty obj8 = new CainiaoPickupBusinessPlatformCallguoguoRequest.BusinessProperty();
obj8.setPrintByOwner(false);
obj8.setPrivacyOn(false);
List<CainiaoPickupBusinessPlatformCallguoguoRequest.ValueService> list10 = new ArrayList<CainiaoPickupBusinessPlatformCallguoguoRequest.ValueService>();
CainiaoPickupBusinessPlatformCallguoguoRequest.ValueService obj11 = new CainiaoPickupBusinessPlatformCallguoguoRequest.ValueService();
list10.add(obj11);
obj11.setValue("yes");
obj11.setKey("gift_package");
obj8.setValueServices(list10);
req.setParamBusinessProperty(obj8);
CainiaoPickupBusinessPlatformCallguoguoResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
CainiaoPickupBusinessPlatformCallguoguoRequest req = new CainiaoPickupBusinessPlatformCallguoguoRequest();
req.OrderRealOwnerId = "13578343";
req.OrderRealOwnerMobile = "13817747777";
req.OrderRealContactId = "13578343";
req.OrderRealContactMobile = "13817747777";
List<CainiaoPickupBusinessPlatformCallguoguoRequest.GuoGuoPackageInfoDomain> list2 = new List<CainiaoPickupBusinessPlatformCallguoguoRequest.GuoGuoPackageInfoDomain>();
CainiaoPickupBusinessPlatformCallguoguoRequest.GuoGuoPackageInfoDomain obj3 = new CainiaoPickupBusinessPlatformCallguoguoRequest.GuoGuoPackageInfoDomain();
list2.Add(obj3);
obj3.ItemTitle = "华为手机";
obj3.PackageId = "包裹号";
CainiaoPickupBusinessPlatformCallguoguoRequest.BusinessCustomerDomain obj4 = new CainiaoPickupBusinessPlatformCallguoguoRequest.BusinessCustomerDomain();
obj4.AreaId = "311200";
obj4.FullAddressDetail = "浙江省杭州市网商路699号";
obj4.Mobile = "13817747777";
obj4.Name = "张三";
obj3.Receiver= obj4;
CainiaoPickupBusinessPlatformCallguoguoRequest.BusinessCustomerDomain obj5 = new CainiaoPickupBusinessPlatformCallguoguoRequest.BusinessCustomerDomain();
obj5.AreaId = "311200";
obj5.FullAddressDetail = "浙江省杭州市网商路966号";
obj5.Mobile = "13817747777";
obj5.Name = "李四";
obj3.Sender= obj5;
obj3.Weight = 1000L;
obj3.CouponId = "1000";
req.ParamList_ = list2;
CainiaoPickupBusinessPlatformCallguoguoRequest.BusinessPropertyDomain obj6 = new CainiaoPickupBusinessPlatformCallguoguoRequest.BusinessPropertyDomain();
obj6.PrintByOwner = false;
obj6.PrivacyOn = false;
List<CainiaoPickupBusinessPlatformCallguoguoRequest.ValueServiceDomain> list8 = new List<CainiaoPickupBusinessPlatformCallguoguoRequest.ValueServiceDomain>();
CainiaoPickupBusinessPlatformCallguoguoRequest.ValueServiceDomain obj9 = new CainiaoPickupBusinessPlatformCallguoguoRequest.ValueServiceDomain();
list8.Add(obj9);
obj9.Value = "yes";
obj9.Key = "gift_package";
obj6.ValueServices= list8;
req.ParamBusinessProperty_ = obj6;
CainiaoPickupBusinessPlatformCallguoguoResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new CainiaoPickupBusinessPlatformCallguoguoRequest;
$req->setOrderRealOwnerId("13578343");
$req->setOrderRealOwnerMobile("13817747777");
$req->setOrderRealContactId("13578343");
$req->setOrderRealContactMobile("13817747777");
$param_list = new GuoGuoPackageInfo;
$param_list->item_title="华为手机";
$param_list->package_id="包裹号";
$receiver = new BusinessCustomer;
$receiver->area_id="311200";
$receiver->full_address_detail="浙江省杭州市网商路699号";
$receiver->mobile="13817747777";
$receiver->name="张三";
$param_list->receiver = $receiver;
$sender = new BusinessCustomer;
$sender->area_id="311200";
$sender->full_address_detail="浙江省杭州市网商路966号";
$sender->mobile="13817747777";
$sender->name="李四";
$param_list->sender = $sender;
$param_list->weight="1000";
$param_list->coupon_id="1000";
$req->setParamList(json_encode($param_list));
$param_business_property = new BusinessProperty;
$param_business_property->print_by_owner="false";
$param_business_property->privacy_on="false";
$value_services = new ValueService;
$value_services->value="yes";
$value_services->key="gift_package";
$param_business_property->value_services = $value_services;
$req->setParamBusinessProperty(json_encode($param_business_property));
$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=cainiao.pickup.business.platform.callguoguo' \
-d 'partner_id=apidoc' \
-d 'session=0d11cfd4-603c-4ba2-b672-a1d8b8037c71' \
-d 'sign=502DF76CB47A633385A35B171BE1DA0A' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-26+10%3A12%3A20' \
-d 'v=2.0' \
-d 'order_real_contact_id=13578343' \
-d 'order_real_contact_mobile=13817747777' \
-d 'order_real_owner_id=13578343' \
-d 'order_real_owner_mobile=13817747777' \
-d 'param_business_property=null' \
-d 'param_list=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.CainiaoPickupBusinessPlatformCallguoguoRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.order_real_owner_id="13578343"
req.order_real_owner_mobile="13817747777"
req.order_real_contact_id="13578343"
req.order_real_contact_mobile="13817747777"
req.param_list=""
req.param_business_property=""
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,"cainiao.pickup.business.platform.callguoguo");
add_param(pRequest,"order_real_owner_id","13578343");
add_param(pRequest,"order_real_owner_mobile","13817747777");
add_param(pRequest,"order_real_contact_id","13578343");
add_param(pRequest,"order_real_contact_mobile","13817747777");
add_param(pRequest,"param_list","数据结构JSON示例");
add_param(pRequest,"param_business_property","数据结构JSON示例");
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('cainiao.pickup.business.platform.callguoguo', {
'order_real_owner_id':'13578343',
'order_real_owner_mobile':'13817747777',
'order_real_contact_id':'13578343',
'order_real_contact_mobile':'13817747777',
'param_list':'数据结构JSON示例',
'param_business_property':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})