TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripBtripInvoiceSettingModifyRequest req = new AlitripBtripInvoiceSettingModifyRequest();
AlitripBtripInvoiceSettingModifyRequest.OpenInvoiceModifyAndNewRq obj1 = new AlitripBtripInvoiceSettingModifyRequest.OpenInvoiceModifyAndNewRq();
obj1.setAddress("注册地址");
obj1.setBankNo("1");
obj1.setBankName("xx银行");
obj1.setCorpId("1");
obj1.setTaxNo("123");
obj1.setTel("12312312312");
obj1.setThirdPartId("1");
obj1.setTitle("发票抬头");
obj1.setType(1L);
obj1.setVersion(2L);
req.setRq(obj1);
AlitripBtripInvoiceSettingModifyResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripBtripInvoiceSettingModifyRequest req = new AlitripBtripInvoiceSettingModifyRequest();
AlitripBtripInvoiceSettingModifyRequest.OpenInvoiceModifyAndNewRqDomain obj1 = new AlitripBtripInvoiceSettingModifyRequest.OpenInvoiceModifyAndNewRqDomain();
obj1.Address = "注册地址";
obj1.BankNo = "1";
obj1.BankName = "xx银行";
obj1.CorpId = "1";
obj1.TaxNo = "123";
obj1.Tel = "12312312312";
obj1.ThirdPartId = "1";
obj1.Title = "发票抬头";
obj1.Type = 1L;
obj1.Version = 2L;
req.Rq_ = obj1;
AlitripBtripInvoiceSettingModifyResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripBtripInvoiceSettingModifyRequest;
$rq = new OpenInvoiceModifyAndNewRq;
$rq->address="注册地址";
$rq->bank_no="1";
$rq->bank_name="xx银行";
$rq->corp_id="1";
$rq->tax_no="123";
$rq->tel="12312312312";
$rq->third_part_id="1";
$rq->title="发票抬头";
$rq->type="1";
$rq->version="2";
$req->setRq(json_encode($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=alitrip.btrip.invoice.setting.modify' \
-d 'partner_id=apidoc' \
-d 'session=8d5430be-d412-4507-87d4-f19955c680e9' \
-d 'sign=7242FAEC42C0BECAF28F2EA65BC3D81C' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-23+15%3A55%3A38' \
-d 'v=2.0' \
-d 'rq=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripBtripInvoiceSettingModifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.rq=""
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,"alitrip.btrip.invoice.setting.modify");
add_param(pRequest,"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('alitrip.btrip.invoice.setting.modify', {
'rq':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})