TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaLsyCrmCustomerAppointRequest req = new AlibabaLsyCrmCustomerAppointRequest();
AlibabaLsyCrmCustomerAppointRequest.CrmAppointActivityReq obj1 = new AlibabaLsyCrmCustomerAppointRequest.CrmAppointActivityReq();
obj1.setWechatName("云游四海");
obj1.setBizCode("eashone");
obj1.setGuiderId(1L);
obj1.setStoreId(1L);
obj1.setActivityId(1L);
obj1.setOpenId("1");
req.setCrmAppointActivityReq(obj1);
AlibabaLsyCrmCustomerAppointResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaLsyCrmCustomerAppointRequest req = new AlibabaLsyCrmCustomerAppointRequest();
AlibabaLsyCrmCustomerAppointRequest.CrmAppointActivityReqDomain obj1 = new AlibabaLsyCrmCustomerAppointRequest.CrmAppointActivityReqDomain();
obj1.WechatName = "云游四海";
obj1.BizCode = "eashone";
obj1.GuiderId = 1L;
obj1.StoreId = 1L;
obj1.ActivityId = 1L;
obj1.OpenId = "1";
req.CrmAppointActivityReq_ = obj1;
AlibabaLsyCrmCustomerAppointResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaLsyCrmCustomerAppointRequest;
$crm_appoint_activity_req = new CrmAppointActivityReq;
$crm_appoint_activity_req->wechat_name="云游四海";
$crm_appoint_activity_req->biz_code="eashone";
$crm_appoint_activity_req->guider_id="1";
$crm_appoint_activity_req->store_id="1";
$crm_appoint_activity_req->activity_id="1";
$crm_appoint_activity_req->open_id="1";
$req->setCrmAppointActivityReq(json_encode($crm_appoint_activity_req));
$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=alibaba.lsy.crm.customer.appoint' \
-d 'partner_id=apidoc' \
-d 'session=f6656f2e-d7d2-401e-b572-10c8ff79794f' \
-d 'sign=724A25E9FC49B94A624E06FB80EE85D5' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-08+18%3A16%3A54' \
-d 'v=2.0' \
-d 'crm_appoint_activity_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaLsyCrmCustomerAppointRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.crm_appoint_activity_req="数据结构示例JSON格式"
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,"alibaba.lsy.crm.customer.appoint");
add_param(pRequest,"crm_appoint_activity_req","数据结构JSON示例");
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('alibaba.lsy.crm.customer.appoint', {
'crm_appoint_activity_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})