TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHealthVaccinNoticeAnnouncementPublishRequest req = new AlibabaHealthVaccinNoticeAnnouncementPublishRequest();
req.setPovNo("110101001001");
req.setNoticeTitle("卡介疫苗接种公告");
req.setNoticeContent("关于1-3岁适龄儿童接种卡介疫苗的通知");
req.setNoticeType("1");
req.setNoticeTime("2020-06-25");
req.setAlipayUserIds("'2088332589401234','2088332589401235'");
req.setPovName("杭州西湖社区防疫站");
AlibabaHealthVaccinNoticeAnnouncementPublishResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaHealthVaccinNoticeAnnouncementPublishRequest req = new AlibabaHealthVaccinNoticeAnnouncementPublishRequest();
req.PovNo = "110101001001";
req.NoticeTitle = "卡介疫苗接种公告";
req.NoticeContent = "关于1-3岁适龄儿童接种卡介疫苗的通知";
req.NoticeType = "1";
req.NoticeTime = "2020-06-25";
req.AlipayUserIds = "'2088332589401234','2088332589401235'";
req.PovName = "杭州西湖社区防疫站";
AlibabaHealthVaccinNoticeAnnouncementPublishResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaHealthVaccinNoticeAnnouncementPublishRequest;
$req->setPovNo("110101001001");
$req->setNoticeTitle("卡介疫苗接种公告");
$req->setNoticeContent("关于1-3岁适龄儿童接种卡介疫苗的通知");
$req->setNoticeType("1");
$req->setNoticeTime("2020-06-25");
$req->setAlipayUserIds("['2088332589401234','2088332589401235']");
$req->setPovName("杭州西湖社区防疫站");
$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.health.vaccin.notice.announcement.publish' \
-d 'partner_id=apidoc' \
-d 'sign=37540B7A8A62A29D57450CCD895BEBFF' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-25+21%3A28%3A08' \
-d 'v=2.0' \
-d 'alipay_user_ids=%272088332589401234%27%2C%272088332589401235%27' \
-d 'notice_content=%E5%85%B3%E4%BA%8E1-3%E5%B2%81%E9%80%82%E9%BE%84%E5%84%BF%E7%AB%A5%E6%8E%A5%E7%A7%8D%E5%8D%A1%E4%BB%8B%E7%96%AB%E8%8B%97%E7%9A%84%E9%80%9A%E7%9F%A5' \
-d 'notice_time=2020-06-25' \
-d 'notice_title=%E5%8D%A1%E4%BB%8B%E7%96%AB%E8%8B%97%E6%8E%A5%E7%A7%8D%E5%85%AC%E5%91%8A' \
-d 'notice_type=1' \
-d 'pov_name=%E6%9D%AD%E5%B7%9E%E8%A5%BF%E6%B9%96%E7%A4%BE%E5%8C%BA%E9%98%B2%E7%96%AB%E7%AB%99' \
-d 'pov_no=110101001001'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaHealthVaccinNoticeAnnouncementPublishRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.pov_no="110101001001"
req.notice_title="卡介疫苗接种公告"
req.notice_content="关于1-3岁适龄儿童接种卡介疫苗的通知"
req.notice_type="1"
req.notice_time="2020-06-25"
req.alipay_user_ids="['2088332589401234','2088332589401235']"
req.pov_name="杭州西湖社区防疫站"
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.health.vaccin.notice.announcement.publish");
add_param(pRequest,"pov_no","110101001001");
add_param(pRequest,"notice_title","卡介疫苗接种公告");
add_param(pRequest,"notice_content","关于1-3岁适龄儿童接种卡介疫苗的通知");
add_param(pRequest,"notice_type","1");
add_param(pRequest,"notice_time","2020-06-25");
add_param(pRequest,"alipay_user_ids","'2088332589401234','2088332589401235'");
add_param(pRequest,"pov_name","杭州西湖社区防疫站");
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.health.vaccin.notice.announcement.publish', {
'pov_no':'110101001001',
'notice_title':'卡介疫苗接种公告',
'notice_content':'关于1-3岁适龄儿童接种卡介疫苗的通知',
'notice_type':'1',
'notice_time':'2020-06-25',
'alipay_user_ids':''2088332589401234','2088332589401235'',
'pov_name':'杭州西湖社区防疫站'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})