TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallAlihouseCustomerClueOutInvestTotalDataBackFlowRequest req = new TmallAlihouseCustomerClueOutInvestTotalDataBackFlowRequest();
TmallAlihouseCustomerClueOutInvestTotalDataBackFlowRequest.CustomerClueOutInvestDataBackFlowReq obj1 = new TmallAlihouseCustomerClueOutInvestTotalDataBackFlowRequest.CustomerClueOutInvestDataBackFlowReq();
obj1.setType(1L);
obj1.setData("[{\"id\":64,\"store_id\":3,\"storeName\":\"222333444555666777\",\"aliDayTSendRate\":2,\"aliDayTcSend\":2,\"aliDayTnSend\":1,\"aliOrderTSendRate\":1,\"aliOrderTcSend\":1,\"aliOrderTnSend\":1,\"aliUv\":1,\"allLzSendRate\":1,\"allLzcSend\":1,\"allLznSend\":1,\"businessType\":1,\"createTime\":\"2022-03-31 21:23:12\",\"fcDayTSendRate\":1,\"fcDayTcSend\":1,\"fcDayTnSend\":1,\"fcLzSendRate\":1,\"fcLzcSend\":1,\"fcLznSend\":1,\"fcOrderTSendRate\":1,\"fcOrderTcSend\":1,\"fcOrderTnSend\":1,\"fcUv\":1,\"replyImAll\":1,\"replyImRate\":0,\"sendImAll\":1,\"statisticsDate\":\"2022-04-02\",\"totalCSend\":1,\"totalDayTSendRate\":1,\"totalDayTcSend\":1,\"totalDayTnSend\":1,\"totalNSend\":11,\"totalSendRate\":0,\"totalUv\":1,\"updateTime\":\"2022-03-31 21:23:12\"}]");
req.setReq(obj1);
TmallAlihouseCustomerClueOutInvestTotalDataBackFlowResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallAlihouseCustomerClueOutInvestTotalDataBackFlowRequest req = new TmallAlihouseCustomerClueOutInvestTotalDataBackFlowRequest();
TmallAlihouseCustomerClueOutInvestTotalDataBackFlowRequest.CustomerClueOutInvestDataBackFlowReqDomain obj1 = new TmallAlihouseCustomerClueOutInvestTotalDataBackFlowRequest.CustomerClueOutInvestDataBackFlowReqDomain();
obj1.Type = 1L;
obj1.Data = "[{\"id\":64,\"store_id\":3,\"storeName\":\"222333444555666777\",\"aliDayTSendRate\":2,\"aliDayTcSend\":2,\"aliDayTnSend\":1,\"aliOrderTSendRate\":1,\"aliOrderTcSend\":1,\"aliOrderTnSend\":1,\"aliUv\":1,\"allLzSendRate\":1,\"allLzcSend\":1,\"allLznSend\":1,\"businessType\":1,\"createTime\":\"2022-03-31 21:23:12\",\"fcDayTSendRate\":1,\"fcDayTcSend\":1,\"fcDayTnSend\":1,\"fcLzSendRate\":1,\"fcLzcSend\":1,\"fcLznSend\":1,\"fcOrderTSendRate\":1,\"fcOrderTcSend\":1,\"fcOrderTnSend\":1,\"fcUv\":1,\"replyImAll\":1,\"replyImRate\":0,\"sendImAll\":1,\"statisticsDate\":\"2022-04-02\",\"totalCSend\":1,\"totalDayTSendRate\":1,\"totalDayTcSend\":1,\"totalDayTnSend\":1,\"totalNSend\":11,\"totalSendRate\":0,\"totalUv\":1,\"updateTime\":\"2022-03-31 21:23:12\"}]";
req.Req_ = obj1;
TmallAlihouseCustomerClueOutInvestTotalDataBackFlowResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallAlihouseCustomerClueOutInvestTotalDataBackFlowRequest;
$req = new CustomerClueOutInvestDataBackFlowReq;
$req->type="1";
$req->data="[{\"id\":64,\"store_id\":3,\"storeName\":\"222333444555666777\",\"aliDayTSendRate\":2,\"aliDayTcSend\":2,\"aliDayTnSend\":1,\"aliOrderTSendRate\":1,\"aliOrderTcSend\":1,\"aliOrderTnSend\":1,\"aliUv\":1,\"allLzSendRate\":1,\"allLzcSend\":1,\"allLznSend\":1,\"businessType\":1,\"createTime\":\"2022-03-31 21:23:12\",\"fcDayTSendRate\":1,\"fcDayTcSend\":1,\"fcDayTnSend\":1,\"fcLzSendRate\":1,\"fcLzcSend\":1,\"fcLznSend\":1,\"fcOrderTSendRate\":1,\"fcOrderTcSend\":1,\"fcOrderTnSend\":1,\"fcUv\":1,\"replyImAll\":1,\"replyImRate\":0,\"sendImAll\":1,\"statisticsDate\":\"2022-04-02\",\"totalCSend\":1,\"totalDayTSendRate\":1,\"totalDayTcSend\":1,\"totalDayTnSend\":1,\"totalNSend\":11,\"totalSendRate\":0,\"totalUv\":1,\"updateTime\":\"2022-03-31 21:23:12\"}]";
$req->setReq(json_encode($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=tmall.alihouse.customer.clue.out.invest.total.data.back.flow' \
-d 'partner_id=apidoc' \
-d 'session=22366b4f-3d3f-4445-aaba-844f3bd87f5f' \
-d 'sign=D1D43A27DAFBC7342C98A45078DADCF3' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-19+04%3A20%3A19' \
-d 'v=2.0' \
-d 'req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallAlihouseCustomerClueOutInvestTotalDataBackFlowRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.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,"tmall.alihouse.customer.clue.out.invest.total.data.back.flow");
add_param(pRequest,"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('tmall.alihouse.customer.clue.out.invest.total.data.back.flow', {
'req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})