TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAiContentBusinessSupplyChargeRequest req = new AlibabaAiContentBusinessSupplyChargeRequest();
AlibabaAiContentBusinessSupplyChargeRequest.MemberChargeRequest obj1 = new AlibabaAiContentBusinessSupplyChargeRequest.MemberChargeRequest();
obj1.setEncryptedMobile("hdlIyepSnJ7ipxH7ozXoK0Np72UKX15Zcwk7oHyKXpVwq4iOmEaKjuHDF/JnBL7kg/wfwOWWj/9w8iXUeGWHCF25DsU1usT/sun05GHmHFVQB381dt70+0Xrx2UOJvFv2MTIFuL5erIBul3bVRe5zIh0ucqfTc/0cV21CrFHtWc=");
obj1.setOrderNo("e3aa7fc68af1406b8ef41fe77c5abaeeabc10");
obj1.setBizCode("e3aa7fc68af1406b8ef41fe77c5abaee");
obj1.setSign("bca726f98ccde3c2f2fd48724c097196b9f4d318");
obj1.setTimestamp(1641371120279L);
req.setMemberChargeRequest(obj1);
AlibabaAiContentBusinessSupplyChargeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAiContentBusinessSupplyChargeRequest req = new AlibabaAiContentBusinessSupplyChargeRequest();
AlibabaAiContentBusinessSupplyChargeRequest.MemberChargeRequestDomain obj1 = new AlibabaAiContentBusinessSupplyChargeRequest.MemberChargeRequestDomain();
obj1.EncryptedMobile = "hdlIyepSnJ7ipxH7ozXoK0Np72UKX15Zcwk7oHyKXpVwq4iOmEaKjuHDF/JnBL7kg/wfwOWWj/9w8iXUeGWHCF25DsU1usT/sun05GHmHFVQB381dt70+0Xrx2UOJvFv2MTIFuL5erIBul3bVRe5zIh0ucqfTc/0cV21CrFHtWc=";
obj1.OrderNo = "e3aa7fc68af1406b8ef41fe77c5abaeeabc10";
obj1.BizCode = "e3aa7fc68af1406b8ef41fe77c5abaee";
obj1.Sign = "bca726f98ccde3c2f2fd48724c097196b9f4d318";
obj1.Timestamp = 1641371120279L;
req.MemberChargeRequest_ = obj1;
AlibabaAiContentBusinessSupplyChargeResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAiContentBusinessSupplyChargeRequest;
$member_charge_request = new MemberChargeRequest;
$member_charge_request->encrypted_mobile="hdlIyepSnJ7ipxH7ozXoK0Np72UKX15Zcwk7oHyKXpVwq4iOmEaKjuHDF/JnBL7kg/wfwOWWj/9w8iXUeGWHCF25DsU1usT/sun05GHmHFVQB381dt70+0Xrx2UOJvFv2MTIFuL5erIBul3bVRe5zIh0ucqfTc/0cV21CrFHtWc=";
$member_charge_request->order_no="e3aa7fc68af1406b8ef41fe77c5abaeeabc10";
$member_charge_request->biz_code="e3aa7fc68af1406b8ef41fe77c5abaee";
$member_charge_request->sign="bca726f98ccde3c2f2fd48724c097196b9f4d318";
$member_charge_request->timestamp="1641371120279";
$req->setMemberChargeRequest(json_encode($member_charge_request));
$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.ai.content.business.supply.charge' \
-d 'partner_id=apidoc' \
-d 'sign=EB3ABA0AA2E443FC0BF8D5F3A2A5FAB1' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+01%3A48%3A09' \
-d 'v=2.0' \
-d 'member_charge_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAiContentBusinessSupplyChargeRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.member_charge_request="数据结构示例JSON格式"
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.ai.content.business.supply.charge");
add_param(pRequest,"member_charge_request","数据结构JSON示例");
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.ai.content.business.supply.charge', {
'member_charge_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})