TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmCustomerUpdateppwRequest req = new AlibabaAlscCrmCustomerUpdateppwRequest();
AlibabaAlscCrmCustomerUpdateppwRequest.UpdatePayPasswdReq obj1 = new AlibabaAlscCrmCustomerUpdateppwRequest.UpdatePayPasswdReq();
obj1.setBrandId("123");
obj1.setOperatorName("哈哈");
obj1.setOperatorId("123");
obj1.setPasswdType("md5 、 raw");
obj1.setPayPasswd("123");
obj1.setCustomerId("123");
obj1.setOutBrandId("123");
obj1.setRequestId("123123");
req.setUpdatePayPasswdReq(obj1);
AlibabaAlscCrmCustomerUpdateppwResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlscCrmCustomerUpdateppwRequest req = new AlibabaAlscCrmCustomerUpdateppwRequest();
AlibabaAlscCrmCustomerUpdateppwRequest.UpdatePayPasswdReqDomain obj1 = new AlibabaAlscCrmCustomerUpdateppwRequest.UpdatePayPasswdReqDomain();
obj1.BrandId = "123";
obj1.OperatorName = "哈哈";
obj1.OperatorId = "123";
obj1.PasswdType = "md5 、 raw";
obj1.PayPasswd = "123";
obj1.CustomerId = "123";
obj1.OutBrandId = "123";
obj1.RequestId = "123123";
req.UpdatePayPasswdReq_ = obj1;
AlibabaAlscCrmCustomerUpdateppwResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlscCrmCustomerUpdateppwRequest;
$update_pay_passwd_req = new UpdatePayPasswdReq;
$update_pay_passwd_req->brand_id="123";
$update_pay_passwd_req->operator_name="哈哈";
$update_pay_passwd_req->operator_id="123";
$update_pay_passwd_req->passwd_type="md5 、 raw";
$update_pay_passwd_req->pay_passwd="123";
$update_pay_passwd_req->customer_id="123";
$update_pay_passwd_req->out_brand_id="123";
$update_pay_passwd_req->request_id="123123";
$req->setUpdatePayPasswdReq(json_encode($update_pay_passwd_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.updateppw' \
-d 'partner_id=apidoc' \
-d 'sign=BCCF4E225E87CBFB85DE02D9B03CE309' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-19+15%3A23%3A31' \
-d 'v=2.0' \
-d 'update_pay_passwd_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlscCrmCustomerUpdateppwRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.update_pay_passwd_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.updateppw");
add_param(pRequest,"update_pay_passwd_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.updateppw', {
'update_pay_passwd_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})