TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CrmServicePointObtainpointRequest req = new CrmServicePointObtainpointRequest();
req.setBuyerNick("demo");
req.setCheckId("123");
req.setPointBatch("PG_POINT_BATCH");
req.setPointCode("PG_POINT");
req.setPreQuantity(123L);
req.setQuantity(123L);
req.setTransactionRemark("demo");
req.setPointType(123L);
CrmServicePointObtainpointResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
CrmServicePointObtainpointRequest req = new CrmServicePointObtainpointRequest();
req.BuyerNick = "demo";
req.CheckId = "123";
req.PointBatch = "PG_POINT_BATCH";
req.PointCode = "PG_POINT";
req.PreQuantity = 123L;
req.Quantity = 123L;
req.TransactionRemark = "demo";
req.PointType = 123L;
CrmServicePointObtainpointResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new CrmServicePointObtainpointRequest;
$req->setBuyerNick("demo");
$req->setCheckId("123");
$req->setPointBatch("PG_POINT_BATCH");
$req->setPointCode("PG_POINT");
$req->setPreQuantity("123");
$req->setQuantity("123");
$req->setTransactionRemark("demo");
$req->setPointType("123");
$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.crm.service.point.obtainpoint' \
-d 'partner_id=apidoc' \
-d 'session=c85a9eac-5a03-4439-b032-3be922041e22' \
-d 'sign=0B8482811881DD68A803EE5F6A02B8E5' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-10+14%3A16%3A32' \
-d 'v=2.0' \
-d 'buyer_nick=demo' \
-d 'check_id=123' \
-d 'point_batch=PG_POINT_BATCH' \
-d 'point_code=PG_POINT' \
-d 'point_type=123' \
-d 'pre_quantity=123' \
-d 'quantity=123' \
-d 'transaction_remark=demo'
# -*- coding: utf-8 -*-
import top.api
req=top.api.CrmServicePointObtainpointRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.buyer_nick="demo"
req.check_id="123"
req.point_batch="PG_POINT_BATCH"
req.point_code="PG_POINT"
req.pre_quantity=123
req.quantity=123
req.transaction_remark="demo"
req.point_type=123
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.crm.service.point.obtainpoint");
add_param(pRequest,"buyer_nick","demo");
add_param(pRequest,"check_id","123");
add_param(pRequest,"point_batch","PG_POINT_BATCH");
add_param(pRequest,"point_code","PG_POINT");
add_param(pRequest,"pre_quantity","123");
add_param(pRequest,"quantity","123");
add_param(pRequest,"transaction_remark","demo");
add_param(pRequest,"point_type","123");
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.crm.service.point.obtainpoint', {
'buyer_nick':'demo',
'check_id':'123',
'point_batch':'PG_POINT_BATCH',
'point_code':'PG_POINT',
'pre_quantity':'123',
'quantity':'123',
'transaction_remark':'demo',
'point_type':'123'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})