TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTmallEpsOaPointSendRequest req = new AlibabaTmallEpsOaPointSendRequest();
AlibabaTmallEpsOaPointSendRequest.TopCorpRequest obj1 = new AlibabaTmallEpsOaPointSendRequest.TopCorpRequest();
obj1.setCorpId("ding1d182ae58b9ff8a1ee0f45d8e4f7c288");
List<AlibabaTmallEpsOaPointSendRequest.UserPointInfo> list3 = new ArrayList<AlibabaTmallEpsOaPointSendRequest.UserPointInfo>();
AlibabaTmallEpsOaPointSendRequest.UserPointInfo obj4 = new AlibabaTmallEpsOaPointSendRequest.UserPointInfo();
list3.add(obj4);
obj4.setPoint(100L);
obj4.setEmplId("2046252024901736");
obj4.setName("张三");
obj4.setPhoneNumber("186****2893");
obj4.setTbAccount("tgl_nba");
obj4.setUserType("taobao|dingding");
obj1.setUserInfoList(list3);
obj1.setIsvCorpId("ding1d182ae58b9ff8a1ee0f45d8e4f7c288");
obj1.setTaskName("新春福利");
obj1.setBlessing("新年快乐");
obj1.setUniqueId("M37XYENH9K349NX9Q04AJDVB93PTCT8C");
obj1.setFundType("ent_point");
req.setParm0(obj1);
AlibabaTmallEpsOaPointSendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaTmallEpsOaPointSendRequest req = new AlibabaTmallEpsOaPointSendRequest();
AlibabaTmallEpsOaPointSendRequest.TopCorpRequestDomain obj1 = new AlibabaTmallEpsOaPointSendRequest.TopCorpRequestDomain();
obj1.CorpId = "ding1d182ae58b9ff8a1ee0f45d8e4f7c288";
List<AlibabaTmallEpsOaPointSendRequest.UserPointInfoDomain> list3 = new List<AlibabaTmallEpsOaPointSendRequest.UserPointInfoDomain>();
AlibabaTmallEpsOaPointSendRequest.UserPointInfoDomain obj4 = new AlibabaTmallEpsOaPointSendRequest.UserPointInfoDomain();
list3.Add(obj4);
obj4.Point = 100L;
obj4.EmplId = "2046252024901736";
obj4.Name = "张三";
obj4.PhoneNumber = "186****2893";
obj4.TbAccount = "tgl_nba";
obj4.UserType = "taobao|dingding";
obj1.UserInfoList= list3;
obj1.IsvCorpId = "ding1d182ae58b9ff8a1ee0f45d8e4f7c288";
obj1.TaskName = "新春福利";
obj1.Blessing = "新年快乐";
obj1.UniqueId = "M37XYENH9K349NX9Q04AJDVB93PTCT8C";
obj1.FundType = "ent_point";
req.Parm0_ = obj1;
AlibabaTmallEpsOaPointSendResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaTmallEpsOaPointSendRequest;
$parm0 = new TopCorpRequest;
$parm0->corp_id="ding1d182ae58b9ff8a1ee0f45d8e4f7c288";
$user_info_list = new UserPointInfo;
$user_info_list->point="100";
$user_info_list->empl_id="2046252024901736";
$user_info_list->name="张三";
$user_info_list->phone_number="186****2893";
$user_info_list->tb_account="tgl_nba";
$user_info_list->user_type="taobao|dingding";
$parm0->user_info_list = $user_info_list;
$parm0->isv_corp_id="ding1d182ae58b9ff8a1ee0f45d8e4f7c288";
$parm0->task_name="新春福利";
$parm0->blessing="新年快乐";
$parm0->unique_id="M37XYENH9K349NX9Q04AJDVB93PTCT8C";
$parm0->fund_type="ent_point";
$req->setParm0(json_encode($parm0));
$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.tmall.eps.oa.point.send' \
-d 'partner_id=apidoc' \
-d 'sign=27625D956F50F378AED6F0542FD4F4D4' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-09+22%3A14%3A44' \
-d 'v=2.0' \
-d 'parm0=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaTmallEpsOaPointSendRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.parm0=""
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.tmall.eps.oa.point.send");
add_param(pRequest,"parm0","数据结构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.tmall.eps.oa.point.send', {
'parm0':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})