TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAliqinFcIotQryPersoninfoRequest req = new AlibabaAliqinFcIotQryPersoninfoRequest();
req.setIccid("12312321412");
req.setUserid("122321");
req.setMidPatChannel("122");
AlibabaAliqinFcIotQryPersoninfoResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAliqinFcIotQryPersoninfoRequest req = new AlibabaAliqinFcIotQryPersoninfoRequest();
req.Iccid = "12312321412";
req.Userid = "122321";
req.MidPatChannel = "122";
AlibabaAliqinFcIotQryPersoninfoResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAliqinFcIotQryPersoninfoRequest;
$req->setIccid("12312321412");
$req->setUserid("122321");
$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.qry.personinfo' \
-d 'partner_id=apidoc' \
-d 'session=0c0cc7e7-2102-4364-aac4-f4f60acecb13' \
-d 'sign=3B3C0E7A254E5749FF5CB039D14F69EA' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-21+19%3A08%3A25' \
-d 'v=2.0' \
-d 'iccid=12312321412' \
-d 'mid_pat_channel=122' \
-d 'userid=122321'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAliqinFcIotQryPersoninfoRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.iccid="12312321412"
req.userid="122321"
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.qry.personinfo");
add_param(pRequest,"iccid","12312321412");
add_param(pRequest,"userid","122321");
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.qry.personinfo', {
'iccid':'12312321412',
'userid':'122321',
'mid_pat_channel':'122'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})