TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmCustomerUpdateRequest req = new AlibabaAlscCrmCustomerUpdateRequest();
AlibabaAlscCrmCustomerUpdateRequest.CustomerUpdateOpenReq obj1 = new AlibabaAlscCrmCustomerUpdateRequest.CustomerUpdateOpenReq();
obj1.setAddress("杭州市西湖区XXXXX");
obj1.setBirthday("2019-01-01");
obj1.setBrandId("2019283927423");
obj1.setCustomerId("201928293724");
obj1.setEmail("xxx@xxx.com");
obj1.setExtInfo("");
obj1.setGender(1L);
obj1.setInvoice("杭州市XXXX");
obj1.setLevelId("201923728943");
obj1.setMobile("139XXXXXXXX");
obj1.setName("张三");
obj1.setOperatorId("20192823784");
obj1.setOperatorName("李四");
obj1.setPhone("0571-88889999");
obj1.setRemark("老顾客");
obj1.setRequestId("DHGFUGUFYG234DDF");
obj1.setTagIds(""2019346387"");
obj1.setOutBrandId("1234");
obj1.setCustomerType(0L);
req.setParamCustomerUpdateOpenReq(obj1);
AlibabaAlscCrmCustomerUpdateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlscCrmCustomerUpdateRequest req = new AlibabaAlscCrmCustomerUpdateRequest();
AlibabaAlscCrmCustomerUpdateRequest.CustomerUpdateOpenReqDomain obj1 = new AlibabaAlscCrmCustomerUpdateRequest.CustomerUpdateOpenReqDomain();
obj1.Address = "杭州市西湖区XXXXX";
obj1.Birthday = "2019-01-01";
obj1.BrandId = "2019283927423";
obj1.CustomerId = "201928293724";
obj1.Email = "xxx@xxx.com";
obj1.ExtInfo = "";
obj1.Gender = 1L;
obj1.Invoice = "杭州市XXXX";
obj1.LevelId = "201923728943";
obj1.Mobile = "139XXXXXXXX";
obj1.Name = "张三";
obj1.OperatorId = "20192823784";
obj1.OperatorName = "李四";
obj1.Phone = "0571-88889999";
obj1.Remark = "老顾客";
obj1.RequestId = "DHGFUGUFYG234DDF";
obj1.TagIds = ""2019346387"";
obj1.OutBrandId = "1234";
obj1.CustomerType = 0L;
req.ParamCustomerUpdateOpenReq_ = obj1;
AlibabaAlscCrmCustomerUpdateResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlscCrmCustomerUpdateRequest;
$param_customer_update_open_req = new CustomerUpdateOpenReq;
$param_customer_update_open_req->address="杭州市西湖区XXXXX";
$param_customer_update_open_req->birthday="2019-01-01";
$param_customer_update_open_req->brand_id="2019283927423";
$param_customer_update_open_req->customer_id="201928293724";
$param_customer_update_open_req->email="xxx@xxx.com";
$param_customer_update_open_req->ext_info="";
$param_customer_update_open_req->gender="1";
$param_customer_update_open_req->invoice="杭州市XXXX";
$param_customer_update_open_req->level_id="201923728943";
$param_customer_update_open_req->mobile="139XXXXXXXX";
$param_customer_update_open_req->name="张三";
$param_customer_update_open_req->operator_id="20192823784";
$param_customer_update_open_req->operator_name="李四";
$param_customer_update_open_req->phone="0571-88889999";
$param_customer_update_open_req->remark="老顾客";
$param_customer_update_open_req->request_id="DHGFUGUFYG234DDF";
$param_customer_update_open_req->tag_ids="[\"2019346387\"]";
$param_customer_update_open_req->out_brand_id="1234";
$param_customer_update_open_req->customer_type="0";
$req->setParamCustomerUpdateOpenReq(json_encode($param_customer_update_open_req));
$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.customer.update' \
-d 'partner_id=apidoc' \
-d 'sign=39C9D3FBE7043272B3D1F8B6B8F7DB3B' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-19+15%3A51%3A46' \
-d 'v=2.0' \
-d 'param_customer_update_open_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlscCrmCustomerUpdateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_customer_update_open_req=""
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.customer.update");
add_param(pRequest,"param_customer_update_open_req","数据结构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.customer.update', {
'param_customer_update_open_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})