TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
SmartappTableGetRequest req = new SmartappTableGetRequest();
req.setStartCreatedDate(StringUtils.parseDateTime("2022-06-26 08:30:30"));
req.setEndCreatedDate(StringUtils.parseDateTime("2022-06-27 08:30:30"));
req.setStartModifiedDate(StringUtils.parseDateTime("2022-06-26 08:30:30"));
req.setEndModifiedDate(StringUtils.parseDateTime("2022-06-27 08:30:30"));
req.setPageIndex(1L);
req.setPageSize(200L);
req.setTableId("tableId");
req.setRecordId("WVhDeEtFRmpCK2h3UlMydFlFVWxUdz09");
SmartappTableGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
SmartappTableGetRequest req = new SmartappTableGetRequest();
req.StartCreatedDate = DateTime.Parse("2022-06-26 08:30:30");
req.EndCreatedDate = DateTime.Parse("2022-06-27 08:30:30");
req.StartModifiedDate = DateTime.Parse("2022-06-26 08:30:30");
req.EndModifiedDate = DateTime.Parse("2022-06-27 08:30:30");
req.PageIndex = 1L;
req.PageSize = 200L;
req.TableId = "tableId";
req.RecordId = "WVhDeEtFRmpCK2h3UlMydFlFVWxUdz09";
SmartappTableGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new SmartappTableGetRequest;
$req->setStartCreatedDate("2022-06-26 08:30:30");
$req->setEndCreatedDate("2022-06-27 08:30:30");
$req->setStartModifiedDate("2022-06-26 08:30:30");
$req->setEndModifiedDate("2022-06-27 08:30:30");
$req->setPageIndex("1");
$req->setPageSize("200");
$req->setTableId("tableId");
$req->setRecordId("WVhDeEtFRmpCK2h3UlMydFlFVWxUdz09");
$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.smartapp.table.get' \
-d 'partner_id=apidoc' \
-d 'session=47e812cd-faa4-4869-a794-101dc2afd8e5' \
-d 'sign=0BCA722C31D2F56ABECF6253570D99D0' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-03+23%3A07%3A19' \
-d 'v=2.0' \
-d 'end_created_date=2022-06-27+08%3A30%3A30' \
-d 'end_modified_date=2022-06-27+08%3A30%3A30' \
-d 'page_index=1' \
-d 'page_size=200' \
-d 'record_id=WVhDeEtFRmpCK2h3UlMydFlFVWxUdz09' \
-d 'start_created_date=2022-06-26+08%3A30%3A30' \
-d 'start_modified_date=2022-06-26+08%3A30%3A30' \
-d 'table_id=tableId'
# -*- coding: utf-8 -*-
import top.api
req=top.api.SmartappTableGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.start_created_date="2022-06-26 08:30:30"
req.end_created_date="2022-06-27 08:30:30"
req.start_modified_date="2022-06-26 08:30:30"
req.end_modified_date="2022-06-27 08:30:30"
req.page_index=1
req.page_size=200
req.table_id="tableId"
req.record_id="WVhDeEtFRmpCK2h3UlMydFlFVWxUdz09"
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.smartapp.table.get");
add_param(pRequest,"start_created_date","2022-06-26 08:30:30");
add_param(pRequest,"end_created_date","2022-06-27 08:30:30");
add_param(pRequest,"start_modified_date","2022-06-26 08:30:30");
add_param(pRequest,"end_modified_date","2022-06-27 08:30:30");
add_param(pRequest,"page_index","1");
add_param(pRequest,"page_size","200");
add_param(pRequest,"table_id","tableId");
add_param(pRequest,"record_id","WVhDeEtFRmpCK2h3UlMydFlFVWxUdz09");
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.smartapp.table.get', {
'start_created_date':'2022-06-26 08:30:30',
'end_created_date':'2022-06-27 08:30:30',
'start_modified_date':'2022-06-26 08:30:30',
'end_modified_date':'2022-06-27 08:30:30',
'page_index':'1',
'page_size':'200',
'table_id':'tableId',
'record_id':'WVhDeEtFRmpCK2h3UlMydFlFVWxUdz09'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})