TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPicturesDengtaAccountStatusChangeRequest req = new AlibabaPicturesDengtaAccountStatusChangeRequest();
req.setAccountId("账号");
req.setStatus(1L);
req.setChangeTime("123456");
req.setAccountType(1L);
req.setExt("说明");
AlibabaPicturesDengtaAccountStatusChangeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaPicturesDengtaAccountStatusChangeRequest req = new AlibabaPicturesDengtaAccountStatusChangeRequest();
req.AccountId = "账号";
req.Status = 1L;
req.ChangeTime = "123456";
req.AccountType = 1L;
req.Ext = "说明";
AlibabaPicturesDengtaAccountStatusChangeResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaPicturesDengtaAccountStatusChangeRequest;
$req->setAccountId("账号");
$req->setStatus("1");
$req->setChangeTime("123456");
$req->setAccountType("1");
$req->setExt("说明");
$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.account.status.change' \
-d 'partner_id=apidoc' \
-d 'sign=1970B29F1A444CBB99BB2A8D17461B8F' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-30+14%3A59%3A26' \
-d 'v=2.0' \
-d 'account_id=%E8%B4%A6%E5%8F%B7' \
-d 'account_type=1' \
-d 'change_time=123456' \
-d 'ext=%E8%AF%B4%E6%98%8E' \
-d 'status=1'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaPicturesDengtaAccountStatusChangeRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.account_id="账号"
req.status=1
req.change_time="123456"
req.account_type=1
req.ext="说明"
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.account.status.change");
add_param(pRequest,"account_id","账号");
add_param(pRequest,"status","1");
add_param(pRequest,"change_time","123456");
add_param(pRequest,"account_type","1");
add_param(pRequest,"ext","说明");
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.account.status.change', {
'account_id':'账号',
'status':'1',
'change_time':'123456',
'account_type':'1',
'ext':'说明'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})