TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHealthVaccinPovUpdateRequest req = new AlibabaHealthVaccinPovUpdateRequest();
req.setPovNo("2088332589401234");
req.setPovName("呼家楼接种点");
req.setTelephone("18801293033");
req.setAddress("北京市朝阳区呼家楼社区5号");
req.setDescription("儿童免疫规划接种官方指定合作点");
req.setBusinessTime("周一至周五 09:00-17:00");
AlibabaHealthVaccinPovUpdateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaHealthVaccinPovUpdateRequest req = new AlibabaHealthVaccinPovUpdateRequest();
req.PovNo = "2088332589401234";
req.PovName = "呼家楼接种点";
req.Telephone = "18801293033";
req.Address = "北京市朝阳区呼家楼社区5号";
req.Description = "儿童免疫规划接种官方指定合作点";
req.BusinessTime = "周一至周五 09:00-17:00";
AlibabaHealthVaccinPovUpdateResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaHealthVaccinPovUpdateRequest;
$req->setPovNo("2088332589401234");
$req->setPovName("呼家楼接种点");
$req->setTelephone("18801293033");
$req->setAddress("北京市朝阳区呼家楼社区5号");
$req->setDescription("儿童免疫规划接种官方指定合作点");
$req->setBusinessTime("周一至周五 09:00-17:00");
$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.pov.update' \
-d 'partner_id=apidoc' \
-d 'sign=EA0908B1904B3EC63C3C87DAC5CB08B2' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-25+23%3A33%3A11' \
-d 'v=2.0' \
-d 'address=%E5%8C%97%E4%BA%AC%E5%B8%82%E6%9C%9D%E9%98%B3%E5%8C%BA%E5%91%BC%E5%AE%B6%E6%A5%BC%E7%A4%BE%E5%8C%BA5%E5%8F%B7' \
-d 'business_time=%E5%91%A8%E4%B8%80%E8%87%B3%E5%91%A8%E4%BA%94+09%3A00-17%3A00' \
-d 'description=%E5%84%BF%E7%AB%A5%E5%85%8D%E7%96%AB%E8%A7%84%E5%88%92%E6%8E%A5%E7%A7%8D%E5%AE%98%E6%96%B9%E6%8C%87%E5%AE%9A%E5%90%88%E4%BD%9C%E7%82%B9' \
-d 'pov_name=%E5%91%BC%E5%AE%B6%E6%A5%BC%E6%8E%A5%E7%A7%8D%E7%82%B9' \
-d 'pov_no=2088332589401234' \
-d 'telephone=18801293033'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaHealthVaccinPovUpdateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.pov_no="2088332589401234"
req.pov_name="呼家楼接种点"
req.telephone="18801293033"
req.address="北京市朝阳区呼家楼社区5号"
req.description="儿童免疫规划接种官方指定合作点"
req.business_time="周一至周五 09:00-17:00"
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.pov.update");
add_param(pRequest,"pov_no","2088332589401234");
add_param(pRequest,"pov_name","呼家楼接种点");
add_param(pRequest,"telephone","18801293033");
add_param(pRequest,"address","北京市朝阳区呼家楼社区5号");
add_param(pRequest,"description","儿童免疫规划接种官方指定合作点");
add_param(pRequest,"business_time","周一至周五 09:00-17:00");
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.pov.update', {
'pov_no':'2088332589401234',
'pov_name':'呼家楼接种点',
'telephone':'18801293033',
'address':'北京市朝阳区呼家楼社区5号',
'description':'儿童免疫规划接种官方指定合作点',
'business_time':'周一至周五 09:00-17:00'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})