TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmSalesStaffModifyRequest req = new AlibabaAlscCrmSalesStaffModifyRequest();
AlibabaAlscCrmSalesStaffModifyRequest.TopStaffInfoModifyRequest obj1 = new AlibabaAlscCrmSalesStaffModifyRequest.TopStaffInfoModifyRequest();
obj1.setExtInfo("{}");
obj1.setMemo("无");
obj1.setOutStaffId("kyr13386");
obj1.setOutStaffType("kyr_sales");
obj1.setReqId("3dg72a93n45po");
AlibabaAlscCrmSalesStaffModifyRequest.StaffBase obj2 = new AlibabaAlscCrmSalesStaffModifyRequest.StaffBase();
obj2.setStaffMbl("13322225656");
obj2.setStaffName("王五");
obj2.setStaffType("sale_staff");
obj1.setStaffBase(obj2);
obj1.setTerritoryCode("keruyun_POS_2019");
obj1.setStaffId("2019112439");
req.setParam(obj1);
AlibabaAlscCrmSalesStaffModifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlscCrmSalesStaffModifyRequest req = new AlibabaAlscCrmSalesStaffModifyRequest();
AlibabaAlscCrmSalesStaffModifyRequest.TopStaffInfoModifyRequestDomain obj1 = new AlibabaAlscCrmSalesStaffModifyRequest.TopStaffInfoModifyRequestDomain();
obj1.ExtInfo = "{}";
obj1.Memo = "无";
obj1.OutStaffId = "kyr13386";
obj1.OutStaffType = "kyr_sales";
obj1.ReqId = "3dg72a93n45po";
AlibabaAlscCrmSalesStaffModifyRequest.StaffBaseDomain obj2 = new AlibabaAlscCrmSalesStaffModifyRequest.StaffBaseDomain();
obj2.StaffMbl = "13322225656";
obj2.StaffName = "王五";
obj2.StaffType = "sale_staff";
obj1.StaffBase= obj2;
obj1.TerritoryCode = "keruyun_POS_2019";
obj1.StaffId = "2019112439";
req.Param_ = obj1;
AlibabaAlscCrmSalesStaffModifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlscCrmSalesStaffModifyRequest;
$param = new TopStaffInfoModifyRequest;
$param->ext_info="{}";
$param->memo="无";
$param->out_staff_id="kyr13386";
$param->out_staff_type="kyr_sales";
$param->req_id="3dg72a93n45po";
$staff_base = new StaffBase;
$staff_base->staff_mbl="13322225656";
$staff_base->staff_name="王五";
$staff_base->staff_type="sale_staff";
$param->staff_base = $staff_base;
$param->territory_code="keruyun_POS_2019";
$param->staff_id="2019112439";
$req->setParam(json_encode($param));
$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.crm.sales.staff.modify' \
-d 'partner_id=apidoc' \
-d 'sign=2DF646BED49F79E9EB45955A62CAED5E' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-05+18%3A49%3A48' \
-d 'v=2.0' \
-d 'param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlscCrmSalesStaffModifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param=""
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.crm.sales.staff.modify");
add_param(pRequest,"param","数据结构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.crm.sales.staff.modify', {
'param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})