TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmPointChkpntbypayRequest req = new AlibabaAlscCrmPointChkpntbypayRequest();
AlibabaAlscCrmPointChkpntbypayRequest.ConsumePointByPayOpenReq obj1 = new AlibabaAlscCrmPointChkpntbypayRequest.ConsumePointByPayOpenReq();
obj1.setBrandId("32367");
obj1.setChangePoint(23L);
obj1.setCustomerId("7027365982937563912722");
obj1.setOutShopId("4352143");
obj1.setOutBrandId("33959");
obj1.setShopId("34536324");
req.setParamConsumePointByPayOpenReq(obj1);
AlibabaAlscCrmPointChkpntbypayResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlscCrmPointChkpntbypayRequest req = new AlibabaAlscCrmPointChkpntbypayRequest();
AlibabaAlscCrmPointChkpntbypayRequest.ConsumePointByPayOpenReqDomain obj1 = new AlibabaAlscCrmPointChkpntbypayRequest.ConsumePointByPayOpenReqDomain();
obj1.BrandId = "32367";
obj1.ChangePoint = 23L;
obj1.CustomerId = "7027365982937563912722";
obj1.OutShopId = "4352143";
obj1.OutBrandId = "33959";
obj1.ShopId = "34536324";
req.ParamConsumePointByPayOpenReq_ = obj1;
AlibabaAlscCrmPointChkpntbypayResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlscCrmPointChkpntbypayRequest;
$param_consume_point_by_pay_open_req = new ConsumePointByPayOpenReq;
$param_consume_point_by_pay_open_req->brand_id="32367";
$param_consume_point_by_pay_open_req->change_point="23";
$param_consume_point_by_pay_open_req->customer_id="7027365982937563912722";
$param_consume_point_by_pay_open_req->out_shop_id="4352143";
$param_consume_point_by_pay_open_req->out_brand_id="33959";
$param_consume_point_by_pay_open_req->shop_id="34536324";
$req->setParamConsumePointByPayOpenReq(json_encode($param_consume_point_by_pay_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.point.chkpntbypay' \
-d 'partner_id=apidoc' \
-d 'sign=9FDE94B3221E57974D582EDCDCED1BF9' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-19+15%3A51%3A46' \
-d 'v=2.0' \
-d 'param_consume_point_by_pay_open_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlscCrmPointChkpntbypayRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_consume_point_by_pay_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.point.chkpntbypay");
add_param(pRequest,"param_consume_point_by_pay_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.point.chkpntbypay', {
'param_consume_point_by_pay_open_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})