TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCharityCharitytimeListRequest req = new AlibabaCharityCharitytimeListRequest();
req.setAuthCode("123456");
req.setLimit(2000L);
req.setStartTime(StringUtils.parseDateTime("2019-08-08 12:00:00"));
req.setEndTime(StringUtils.parseDateTime("2019-08-08 12:00:00"));
req.setFetches("ACTIVITY_BASE");
req.setUserKey("1231");
req.setUserType("ALIPAY");
req.setCreateStartTime(StringUtils.parseDateTime("2019-08-08 12:00:00"));
req.setCreateEndTime(StringUtils.parseDateTime("2019-08-08 12:00:00"));
AlibabaCharityCharitytimeListResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaCharityCharitytimeListRequest req = new AlibabaCharityCharitytimeListRequest();
req.AuthCode = "123456";
req.Limit = 2000L;
req.StartTime = DateTime.Parse("2019-08-08 12:00:00");
req.EndTime = DateTime.Parse("2019-08-08 12:00:00");
req.Fetches = "ACTIVITY_BASE";
req.UserKey = "1231";
req.UserType = "ALIPAY";
req.CreateStartTime = DateTime.Parse("2019-08-08 12:00:00");
req.CreateEndTime = DateTime.Parse("2019-08-08 12:00:00");
AlibabaCharityCharitytimeListResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaCharityCharitytimeListRequest;
$req->setAuthCode("123456");
$req->setLimit("2000");
$req->setStartTime("2019-08-08 12:00:00");
$req->setEndTime("2019-08-08 12:00:00");
$req->setFetches("ACTIVITY_BASE");
$req->setUserKey("1231");
$req->setUserType("ALIPAY");
$req->setCreateStartTime("2019-08-08 12:00:00");
$req->setCreateEndTime("2019-08-08 12:00:00");
$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.charity.charitytime.list' \
-d 'partner_id=apidoc' \
-d 'sign=FB994195DF940C39BB71EA91AFE95123' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-12+04%3A16%3A11' \
-d 'v=2.0' \
-d 'auth_code=123456' \
-d 'create_end_time=2019-08-08+12%3A00%3A00' \
-d 'create_start_time=2019-08-08+12%3A00%3A00' \
-d 'end_time=2019-08-08+12%3A00%3A00' \
-d 'fetches=ACTIVITY_BASE' \
-d 'limit=2000' \
-d 'start_time=2019-08-08+12%3A00%3A00' \
-d 'user_key=1231' \
-d 'user_type=ALIPAY'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaCharityCharitytimeListRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.auth_code="123456"
req.limit=2000
req.start_time="2019-08-08 12:00:00"
req.end_time="2019-08-08 12:00:00"
req.fetches="ACTIVITY_BASE"
req.user_key="1231"
req.user_type="ALIPAY"
req.create_start_time="2019-08-08 12:00:00"
req.create_end_time="2019-08-08 12:00:00"
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.charity.charitytime.list");
add_param(pRequest,"auth_code","123456");
add_param(pRequest,"limit","2000");
add_param(pRequest,"start_time","2019-08-08 12:00:00");
add_param(pRequest,"end_time","2019-08-08 12:00:00");
add_param(pRequest,"fetches","ACTIVITY_BASE");
add_param(pRequest,"user_key","1231");
add_param(pRequest,"user_type","ALIPAY");
add_param(pRequest,"create_start_time","2019-08-08 12:00:00");
add_param(pRequest,"create_end_time","2019-08-08 12:00:00");
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.charity.charitytime.list', {
'auth_code':'123456',
'limit':'2000',
'start_time':'2019-08-08 12:00:00',
'end_time':'2019-08-08 12:00:00',
'fetches':'ACTIVITY_BASE',
'user_key':'1231',
'user_type':'ALIPAY',
'create_start_time':'2019-08-08 12:00:00',
'create_end_time':'2019-08-08 12:00:00'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})