TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FilmTfmindProcommentSyncRequest req = new FilmTfmindProcommentSyncRequest();
List<FilmTfmindProcommentSyncRequest.ProCommentReq> list2 = new ArrayList<FilmTfmindProcommentSyncRequest.ProCommentReq>();
FilmTfmindProcommentSyncRequest.ProCommentReq obj3 = new FilmTfmindProcommentSyncRequest.ProCommentReq();
list2.add(obj3);
obj3.setStatus(0L);
obj3.setToutiaoHtml("html");
obj3.setPublishTime(StringUtils.parseDateTime("2017-06-20 12:01:00"));
obj3.setComment("#变形金刚5#");
obj3.setScore("6.7");
obj3.setShowId(178713L);
obj3.setFilmId(177770L);
obj3.setProfileUrl("http://weibo.com/3919053492/profile");
obj3.setAvatar("http://tva4.sinaimg.cn/crop.303.4.758.758.180/e99802b4jw8eqwtfhm7gvj211y0lc0ya.jpg");
obj3.setName("华庆_松山照");
obj3.setUid(3919053492L);
obj3.setUserId(1038690108L);
obj3.setCommentId(1000000001L);
req.setProCommentList(list2);
FilmTfmindProcommentSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
FilmTfmindProcommentSyncRequest req = new FilmTfmindProcommentSyncRequest();
List<FilmTfmindProcommentSyncRequest.ProCommentReqDomain> list2 = new List<FilmTfmindProcommentSyncRequest.ProCommentReqDomain>();
FilmTfmindProcommentSyncRequest.ProCommentReqDomain obj3 = new FilmTfmindProcommentSyncRequest.ProCommentReqDomain();
list2.Add(obj3);
obj3.Status = 0L;
obj3.ToutiaoHtml = "html";
obj3.PublishTime = DateTime.Parse(2017-06-20 12:01:00");
obj3.Comment = "#变形金刚5#";
obj3.Score = "6.7";
obj3.ShowId = 178713L;
obj3.FilmId = 177770L;
obj3.ProfileUrl = "http://weibo.com/3919053492/profile";
obj3.Avatar = "http://tva4.sinaimg.cn/crop.303.4.758.758.180/e99802b4jw8eqwtfhm7gvj211y0lc0ya.jpg";
obj3.Name = "华庆_松山照";
obj3.Uid = 3919053492L;
obj3.UserId = 1038690108L;
obj3.CommentId = 1000000001L;
req.ProCommentList_ = list2;
FilmTfmindProcommentSyncResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new FilmTfmindProcommentSyncRequest;
$pro_comment_list = new ProCommentReq;
$pro_comment_list->status="0";
$pro_comment_list->toutiao_html="html";
$pro_comment_list->publish_time="2017-06-20 12:01:00";
$pro_comment_list->comment="#变形金刚5#";
$pro_comment_list->score="6.7";
$pro_comment_list->show_id="178713";
$pro_comment_list->film_id="177770";
$pro_comment_list->profile_url="http://weibo.com/3919053492/profile";
$pro_comment_list->avatar="http://tva4.sinaimg.cn/crop.303.4.758.758.180/e99802b4jw8eqwtfhm7gvj211y0lc0ya.jpg";
$pro_comment_list->name="华庆_松山照";
$pro_comment_list->uid="3919053492";
$pro_comment_list->user_id="1038690108";
$pro_comment_list->comment_id="1000000001";
$req->setProCommentList(json_encode($pro_comment_list));
$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=taobao.film.tfmind.procomment.sync' \
-d 'partner_id=apidoc' \
-d 'sign=C0F2F29A501EE920C6378DAE80C7584A' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-08+05%3A43%3A39' \
-d 'v=2.0' \
-d 'pro_comment_list=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.FilmTfmindProcommentSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.pro_comment_list=""
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,"taobao.film.tfmind.procomment.sync");
add_param(pRequest,"pro_comment_list","数据结构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('taobao.film.tfmind.procomment.sync', {
'pro_comment_list':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})