TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaLsyMiniappMsgPushRequest req = new AlibabaLsyMiniappMsgPushRequest();
req.setAppId("1212");
req.setMsgId(1212L);
req.setStoreId(1212L);
req.setTemplateId("miaoling_msg_isv_clue");
req.setParams("{\"name\",\"张三\"}");
AlibabaLsyMiniappMsgPushResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaLsyMiniappMsgPushRequest req = new AlibabaLsyMiniappMsgPushRequest();
req.AppId = "1212";
req.MsgId = 1212L;
req.StoreId = 1212L;
req.TemplateId = "miaoling_msg_isv_clue";
req.Params = "{\"name\",\"张三\"}";
AlibabaLsyMiniappMsgPushResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaLsyMiniappMsgPushRequest;
$req->setAppId("1212");
$req->setMsgId("1212");
$req->setStoreId("1212");
$req->setTemplateId("miaoling_msg_isv_clue");
$req->setParams("{\"name\",\"张三\"}");
$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.lsy.miniapp.msg.push' \
-d 'partner_id=apidoc' \
-d 'session=350d2861-c809-434c-bf00-85f0746d18c1' \
-d 'sign=1AA7ACEB0E6C62E05A880B473E81DAA1' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-19+16%3A36%3A26' \
-d 'v=2.0' \
-d 'app_id=1212' \
-d 'msg_id=1212' \
-d 'params=%7B%5C%22name%5C%22%2C%5C%22%E5%BC%A0%E4%B8%89%5C%22%7D' \
-d 'store_id=1212' \
-d 'template_id=miaoling_msg_isv_clue'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaLsyMiniappMsgPushRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.app_id="1212"
req.msg_id=1212
req.store_id=1212
req.template_id="miaoling_msg_isv_clue"
req.params="{\"name\",\"张三\"}"
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.lsy.miniapp.msg.push");
add_param(pRequest,"app_id","1212");
add_param(pRequest,"msg_id","1212");
add_param(pRequest,"store_id","1212");
add_param(pRequest,"template_id","miaoling_msg_isv_clue");
add_param(pRequest,"params","{\"name\",\"张三\"}");
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.lsy.miniapp.msg.push', {
'app_id':'1212',
'msg_id':'1212',
'store_id':'1212',
'template_id':'miaoling_msg_isv_clue',
'params':'{\"name\",\"张三\"}'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})