TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthInsuranceInstMiniprogramQrcodeGetRequest req = new AlibabaAlihealthInsuranceInstMiniprogramQrcodeGetRequest();
AlibabaAlihealthInsuranceInstMiniprogramQrcodeGetRequest.InstGetMiniProgramQrCodeRequest obj1 = new AlibabaAlihealthInsuranceInstMiniprogramQrcodeGetRequest.InstGetMiniProgramQrCodeRequest();
obj1.setCheckPath(true);
obj1.setEnvVersion("release");
obj1.setIsHyaline(false);
obj1.setMiniProgramName("YILUBAO");
obj1.setWidth(430L);
obj1.setLineColor("{\"r\":0,\"g\":0,\"b\":0}");
obj1.setPage("pages/index/index");
obj1.setAutoColor(false);
obj1.setScene("12345");
req.setInstGetMiniProgramQrCodeRequest(obj1);
AlibabaAlihealthInsuranceInstMiniprogramQrcodeGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthInsuranceInstMiniprogramQrcodeGetRequest req = new AlibabaAlihealthInsuranceInstMiniprogramQrcodeGetRequest();
AlibabaAlihealthInsuranceInstMiniprogramQrcodeGetRequest.InstGetMiniProgramQrCodeRequestDomain obj1 = new AlibabaAlihealthInsuranceInstMiniprogramQrcodeGetRequest.InstGetMiniProgramQrCodeRequestDomain();
obj1.CheckPath = true;
obj1.EnvVersion = "release";
obj1.IsHyaline = false;
obj1.MiniProgramName = "YILUBAO";
obj1.Width = 430L;
obj1.LineColor = "{\"r\":0,\"g\":0,\"b\":0}";
obj1.Page = "pages/index/index";
obj1.AutoColor = false;
obj1.Scene = "12345";
req.InstGetMiniProgramQrCodeRequest_ = obj1;
AlibabaAlihealthInsuranceInstMiniprogramQrcodeGetResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthInsuranceInstMiniprogramQrcodeGetRequest;
$inst_get_mini_program_qr_code_request = new InstGetMiniProgramQrCodeRequest;
$inst_get_mini_program_qr_code_request->check_path="true";
$inst_get_mini_program_qr_code_request->env_version="release";
$inst_get_mini_program_qr_code_request->is_hyaline="false";
$inst_get_mini_program_qr_code_request->mini_program_name="YILUBAO";
$inst_get_mini_program_qr_code_request->width="430";
$inst_get_mini_program_qr_code_request->line_color="{\"r\":0,\"g\":0,\"b\":0}";
$inst_get_mini_program_qr_code_request->page="pages/index/index";
$inst_get_mini_program_qr_code_request->auto_color="false";
$inst_get_mini_program_qr_code_request->scene="12345";
$req->setInstGetMiniProgramQrCodeRequest(json_encode($inst_get_mini_program_qr_code_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.insurance.inst.miniprogram.qrcode.get' \
-d 'partner_id=apidoc' \
-d 'sign=90F9AA23825605A251175077E3EA8D3C' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-16+23%3A17%3A24' \
-d 'v=2.0' \
-d 'inst_get_mini_program_qr_code_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthInsuranceInstMiniprogramQrcodeGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.inst_get_mini_program_qr_code_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.insurance.inst.miniprogram.qrcode.get");
add_param(pRequest,"inst_get_mini_program_qr_code_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.insurance.inst.miniprogram.qrcode.get', {
'inst_get_mini_program_qr_code_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})