TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFliggyJointrightsCreateautopayCreateRequest req = new AlibabaFliggyJointrightsCreateautopayCreateRequest();
AlibabaFliggyJointrightsCreateautopayCreateRequest.JointRightsPayCreateOrderRequest obj1 = new AlibabaFliggyJointrightsCreateautopayCreateRequest.JointRightsPayCreateOrderRequest();
obj1.setPhoneNumber(16679002633L);
obj1.setActivityId("sadasdas");
obj1.setPromotionMediaId(213L);
obj1.setPromotionPositionId(21312L);
req.setJointRightsPayCreateOrderRequest(obj1);
AlibabaFliggyJointrightsCreateautopayCreateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaFliggyJointrightsCreateautopayCreateRequest req = new AlibabaFliggyJointrightsCreateautopayCreateRequest();
AlibabaFliggyJointrightsCreateautopayCreateRequest.JointRightsPayCreateOrderRequestDomain obj1 = new AlibabaFliggyJointrightsCreateautopayCreateRequest.JointRightsPayCreateOrderRequestDomain();
obj1.PhoneNumber = 16679002633L;
obj1.ActivityId = "sadasdas";
obj1.PromotionMediaId = 213L;
obj1.PromotionPositionId = 21312L;
req.JointRightsPayCreateOrderRequest_ = obj1;
AlibabaFliggyJointrightsCreateautopayCreateResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaFliggyJointrightsCreateautopayCreateRequest;
$joint_rights_pay_create_order_request = new JointRightsPayCreateOrderRequest;
$joint_rights_pay_create_order_request->phone_number="16679002633";
$joint_rights_pay_create_order_request->activity_id="sadasdas";
$joint_rights_pay_create_order_request->promotion_media_id="213";
$joint_rights_pay_create_order_request->promotion_position_id="21312";
$req->setJointRightsPayCreateOrderRequest(json_encode($joint_rights_pay_create_order_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.fliggy.jointrights.createautopay.create' \
-d 'partner_id=apidoc' \
-d 'sign=28C6B9FE4A162FD985D1124CD9C79EF6' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-11-01+09%3A08%3A41' \
-d 'v=2.0' \
-d 'joint_rights_pay_create_order_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaFliggyJointrightsCreateautopayCreateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.joint_rights_pay_create_order_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.fliggy.jointrights.createautopay.create");
add_param(pRequest,"joint_rights_pay_create_order_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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.fliggy.jointrights.createautopay.create', {
'joint_rights_pay_create_order_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})