TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
MessageFuwuSupplyConfigStateSyncRequest req = new MessageFuwuSupplyConfigStateSyncRequest();
MessageFuwuSupplyConfigStateSyncRequest.SupplySubSyncParam obj1 = new MessageFuwuSupplyConfigStateSyncRequest.SupplySubSyncParam();
obj1.setConfigured(true);
obj1.setSceneCode("invoiceService");
obj1.setCAppIds("222,1111");
obj1.setBAppId(111111L);
obj1.setTenantCode("jushuitang");
obj1.setPlanId("12345");
req.setSupplySubSync(obj1);
MessageFuwuSupplyConfigStateSyncResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
MessageFuwuSupplyConfigStateSyncRequest req = new MessageFuwuSupplyConfigStateSyncRequest();
MessageFuwuSupplyConfigStateSyncRequest.SupplySubSyncParamDomain obj1 = new MessageFuwuSupplyConfigStateSyncRequest.SupplySubSyncParamDomain();
obj1.Configured = true;
obj1.SceneCode = "invoiceService";
obj1.CAppIds = "222,1111";
obj1.BAppId = 111111L;
obj1.TenantCode = "jushuitang";
obj1.PlanId = "12345";
req.SupplySubSync_ = obj1;
MessageFuwuSupplyConfigStateSyncResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new MessageFuwuSupplyConfigStateSyncRequest;
$supply_sub_sync = new SupplySubSyncParam;
$supply_sub_sync->configured="true";
$supply_sub_sync->scene_code="invoiceService";
$supply_sub_sync->c_app_ids="222,1111";
$supply_sub_sync->b_app_id="111111";
$supply_sub_sync->tenant_code="jushuitang";
$supply_sub_sync->plan_id="12345";
$req->setSupplySubSync(json_encode($supply_sub_sync));
$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.message.fuwu.supply.config.state.sync' \
-d 'partner_id=apidoc' \
-d 'session=2bcf5987-c4d9-44da-bb5f-79fd00a6174a' \
-d 'sign=D72593D22A06F010AC5E57248898A7B9' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-26+13%3A31%3A45' \
-d 'v=2.0' \
-d 'supply_sub_sync=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.MessageFuwuSupplyConfigStateSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.supply_sub_sync="数据结构示例JSON格式"
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.message.fuwu.supply.config.state.sync");
add_param(pRequest,"supply_sub_sync","数据结构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('taobao.message.fuwu.supply.config.state.sync', {
'supply_sub_sync':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})