TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPicturesDengtaWxaccountPriceChangeRequest req = new AlibabaPicturesDengtaWxaccountPriceChangeRequest();
req.setAccountId("111");
req.setChangeTime("2018-03-02 12:00:00");
req.setSingle("100");
req.setOther("100");
req.setSecond("100");
req.setFirst("200");
req.setId(222L);
req.setFirstAli("80");
req.setSecondAli("80");
req.setSingleAli("80");
req.setOtherAli("80");
AlibabaPicturesDengtaWxaccountPriceChangeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaPicturesDengtaWxaccountPriceChangeRequest req = new AlibabaPicturesDengtaWxaccountPriceChangeRequest();
req.AccountId = "111";
req.ChangeTime = "2018-03-02 12:00:00";
req.Single = "100";
req.Other = "100";
req.Second = "100";
req.First = "200";
req.Id = 222L;
req.FirstAli = "80";
req.SecondAli = "80";
req.SingleAli = "80";
req.OtherAli = "80";
AlibabaPicturesDengtaWxaccountPriceChangeResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaPicturesDengtaWxaccountPriceChangeRequest;
$req->setAccountId("111");
$req->setChangeTime("2018-03-02 12:00:00");
$req->setSingle("100");
$req->setOther("100");
$req->setSecond("100");
$req->setFirst("200");
$req->setId("222");
$req->setFirstAli("80");
$req->setSecondAli("80");
$req->setSingleAli("80");
$req->setOtherAli("80");
$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.pictures.dengta.wxaccount.price.change' \
-d 'partner_id=apidoc' \
-d 'sign=F70F8C0B34D93B52447CE214D7A29B31' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-30+15%3A00%3A41' \
-d 'v=2.0' \
-d 'account_id=111' \
-d 'change_time=2018-03-02+12%3A00%3A00' \
-d 'first=200' \
-d 'first_ali=80' \
-d 'id=222' \
-d 'other=100' \
-d 'other_ali=80' \
-d 'second=100' \
-d 'second_ali=80' \
-d 'single=100' \
-d 'single_ali=80'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaPicturesDengtaWxaccountPriceChangeRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.account_id="111"
req.change_time="2018-03-02 12:00:00"
req.single="100"
req.other="100"
req.second="100"
req.first="200"
req.id=222
req.first_ali="80"
req.second_ali="80"
req.single_ali="80"
req.other_ali="80"
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.pictures.dengta.wxaccount.price.change");
add_param(pRequest,"account_id","111");
add_param(pRequest,"change_time","2018-03-02 12:00:00");
add_param(pRequest,"single","100");
add_param(pRequest,"other","100");
add_param(pRequest,"second","100");
add_param(pRequest,"first","200");
add_param(pRequest,"id","222");
add_param(pRequest,"first_ali","80");
add_param(pRequest,"second_ali","80");
add_param(pRequest,"single_ali","80");
add_param(pRequest,"other_ali","80");
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.pictures.dengta.wxaccount.price.change', {
'account_id':'111',
'change_time':'2018-03-02 12:00:00',
'single':'100',
'other':'100',
'second':'100',
'first':'200',
'id':'222',
'first_ali':'80',
'second_ali':'80',
'single_ali':'80',
'other_ali':'80'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})