TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthRecommendCardinfoGetRequest req = new AlibabaAlihealthRecommendCardinfoGetRequest();
AlibabaAlihealthRecommendCardinfoGetRequest.QuickAppRequest obj1 = new AlibabaAlihealthRecommendCardinfoGetRequest.QuickAppRequest();
obj1.setSceneId("111");
obj1.setShowTime("6");
obj1.setChannel("huawei");
obj1.setAppVersion("1.0.0");
obj1.setCityCode("130100");
obj1.setLatitude("40.0");
obj1.setLongitude("115.9");
req.setCardRequest(obj1);
AlibabaAlihealthRecommendCardinfoGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthRecommendCardinfoGetRequest req = new AlibabaAlihealthRecommendCardinfoGetRequest();
AlibabaAlihealthRecommendCardinfoGetRequest.QuickAppRequestDomain obj1 = new AlibabaAlihealthRecommendCardinfoGetRequest.QuickAppRequestDomain();
obj1.SceneId = "111";
obj1.ShowTime = "6";
obj1.Channel = "huawei";
obj1.AppVersion = "1.0.0";
obj1.CityCode = "130100";
obj1.Latitude = "40.0";
obj1.Longitude = "115.9";
req.CardRequest_ = obj1;
AlibabaAlihealthRecommendCardinfoGetResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthRecommendCardinfoGetRequest;
$card_request = new QuickAppRequest;
$card_request->scene_id="111";
$card_request->show_time="6";
$card_request->channel="huawei";
$card_request->app_version="1.0.0";
$card_request->city_code="130100";
$card_request->latitude="40.0";
$card_request->longitude="115.9";
$req->setCardRequest(json_encode($card_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.alihealth.recommend.cardinfo.get' \
-d 'partner_id=apidoc' \
-d 'sign=426A7D9244DFFD65214C0D14780803FB' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-06+12%3A16%3A34' \
-d 'v=2.0' \
-d 'card_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthRecommendCardinfoGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.card_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.alihealth.recommend.cardinfo.get");
add_param(pRequest,"card_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.alihealth.recommend.cardinfo.get', {
'card_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})