TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAliqinFcIotModbindRequest req = new AlibabaAliqinFcIotModbindRequest();
req.setOpionType("chgBind");
req.setBillReal("4567867897890");
req.setIccid("4567867897890");
req.setNewimei("12312ss");
req.setImei("12312ss");
req.setBillSource("ICCID");
req.setMidPatChannel("122");
AlibabaAliqinFcIotModbindResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAliqinFcIotModbindRequest req = new AlibabaAliqinFcIotModbindRequest();
req.OpionType = "chgBind";
req.BillReal = "4567867897890";
req.Iccid = "4567867897890";
req.Newimei = "12312ss";
req.Imei = "12312ss";
req.BillSource = "ICCID";
req.MidPatChannel = "122";
AlibabaAliqinFcIotModbindResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAliqinFcIotModbindRequest;
$req->setOpionType("chgBind");
$req->setBillReal("4567867897890");
$req->setIccid("4567867897890");
$req->setNewimei("12312ss");
$req->setImei("12312ss");
$req->setBillSource("ICCID");
$req->setMidPatChannel("122");
$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=alibaba.aliqin.fc.iot.modbind' \
-d 'partner_id=apidoc' \
-d 'session=e22f4a12-bf61-4723-901b-6951d77c7975' \
-d 'sign=6A24D917F9B1C8F2231BBBB6303B0046' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-03+12%3A08%3A00' \
-d 'v=2.0' \
-d 'bill_real=4567867897890' \
-d 'bill_source=ICCID' \
-d 'iccid=4567867897890' \
-d 'imei=12312ss' \
-d 'mid_pat_channel=122' \
-d 'newimei=12312ss' \
-d 'opion_type=chgBind'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAliqinFcIotModbindRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.opion_type="chgBind"
req.bill_real="4567867897890"
req.iccid="4567867897890"
req.newimei="12312ss"
req.imei="12312ss"
req.bill_source="ICCID"
req.mid_pat_channel="122"
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,"alibaba.aliqin.fc.iot.modbind");
add_param(pRequest,"opion_type","chgBind");
add_param(pRequest,"bill_real","4567867897890");
add_param(pRequest,"iccid","4567867897890");
add_param(pRequest,"newimei","12312ss");
add_param(pRequest,"imei","12312ss");
add_param(pRequest,"bill_source","ICCID");
add_param(pRequest,"mid_pat_channel","122");
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('alibaba.aliqin.fc.iot.modbind', {
'opion_type':'chgBind',
'bill_real':'4567867897890',
'iccid':'4567867897890',
'newimei':'12312ss',
'imei':'12312ss',
'bill_source':'ICCID',
'mid_pat_channel':'122'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})