TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TrainAgentUntreatedchangeQueryVtwoRequest req = new TrainAgentUntreatedchangeQueryVtwoRequest();
TrainAgentUntreatedchangeQueryVtwoRequest.QueryUntreatedChangeRQ obj1 = new TrainAgentUntreatedchangeQueryVtwoRequest.QueryUntreatedChangeRQ();
obj1.setAgentId(333444555L);
obj1.setTpOrderId(1779715812572607883L);
obj1.setTtpOrderId(4812850813378L);
req.setQueryUntreatedChangeRq(obj1);
TrainAgentUntreatedchangeQueryVtwoResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TrainAgentUntreatedchangeQueryVtwoRequest req = new TrainAgentUntreatedchangeQueryVtwoRequest();
TrainAgentUntreatedchangeQueryVtwoRequest.QueryUntreatedChangeRQDomain obj1 = new TrainAgentUntreatedchangeQueryVtwoRequest.QueryUntreatedChangeRQDomain();
obj1.AgentId = 333444555L;
obj1.TpOrderId = 1779715812572607883L;
obj1.TtpOrderId = 4812850813378L;
req.QueryUntreatedChangeRq_ = obj1;
TrainAgentUntreatedchangeQueryVtwoResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TrainAgentUntreatedchangeQueryVtwoRequest;
$query_untreated_change_rq = new QueryUntreatedChangeRQ;
$query_untreated_change_rq->agent_id="333444555";
$query_untreated_change_rq->tp_order_id="1779715812572607883";
$query_untreated_change_rq->ttp_order_id="4812850813378";
$req->setQueryUntreatedChangeRq(json_encode($query_untreated_change_rq));
$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.train.agent.untreatedchange.query.vtwo' \
-d 'partner_id=apidoc' \
-d 'session=2f2e78eb-be68-4193-b1fd-57e6fe73c1fb' \
-d 'sign=0E28B4F32406949706C02B05B788F2EE' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-21+16%3A54%3A56' \
-d 'v=2.0' \
-d 'query_untreated_change_rq=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TrainAgentUntreatedchangeQueryVtwoRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.query_untreated_change_rq="数据结构示例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,"taobao.train.agent.untreatedchange.query.vtwo");
add_param(pRequest,"query_untreated_change_rq","数据结构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('taobao.train.agent.untreatedchange.query.vtwo', {
'query_untreated_change_rq':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})