文档中心 > API类目 > 飞猪-菲住联盟

alitrip.futurehotel.content.addcomment (新增用户评价酒店评论信息)

新增用户评价酒店评论信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_insert_comment_req InsertCommentReq 可选 入参
  • └ comment_detail
  • String
  • 可选
  • 1
  • 评论详情
  • └ cost_performance_score
  • String
  • 可选
  • 1
  • 性价比评分
  • └ gmt_create
  • Date
  • 可选
  • 2021-01-01 00:00:00
  • 评论时间
  • └ gmt_modify
  • Date
  • 可选
  • 2021-01-01 00:00:00
  • 编辑时间
  • └ health_score
  • String
  • 可选
  • 1
  • 卫生分
  • └ hotel_id
  • Number
  • 可选
  • 1
  • 酒店ID
  • └ hotel_name
  • String
  • 可选
  • avds
  • 酒店名称
  • └ id
  • Number
  • 可选
  • 1
  • 主键
  • └ location_score
  • String
  • 可选
  • 1
  • 位置评分
  • └ login_user_id
  • String
  • 可选
  • 1
  • login_user_id
  • └ order_id
  • Number
  • 可选
  • 1
  • 订单编号
  • └ photo
  • String
  • 可选
  • 1
  • 图片
  • └ service_score
  • String
  • 可选
  • 1
  • 服务分
  • └ total_score
  • String
  • 可选
  • 1
  • 总分
  • └ user_id
  • Number
  • 可选
  • 12
  • 用户ID
  • └ user_nick
  • String
  • 可选
  • abd
  • 用户昵称

响应参数

名称 类型 示例值 描述
insert_comment_rs InsertCommentRs insertCommentRs
  • └ cost_performance_score
  • String
  • 性价比评分
  • └ fh_code
  • String
  • fh_code
  • └ fh_msg
  • String
  • fh_msg
  • └ fh_success
  • Boolean
  • fh_success
  • └ gmt_create
  • String
  • 创建时间
  • └ gmt_modify
  • String
  • 修改时间
  • └ health_score
  • String
  • 卫生分
  • └ hotel_id
  • Number
  • 酒店id
  • └ hotel_name
  • String
  • 酒店名称
  • └ id
  • Number
  • 评论id
  • └ is_delete
  • Number
  • 删除标识
  • └ location_score
  • String
  • 位置评分
  • └ order_id
  • Number
  • 订单id
  • └ service_score
  • String
  • 服务评分
  • └ total_score
  • String
  • 整体评分
  • └ user_id
  • Number
  • 用户id
  • └ user_nick
  • String
  • 用户昵称

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFuturehotelContentAddcommentRequest req = new AlitripFuturehotelContentAddcommentRequest();
AlitripFuturehotelContentAddcommentRequest.InsertCommentReq obj1 = new AlitripFuturehotelContentAddcommentRequest.InsertCommentReq();
obj1.setCommentDetail("1");
obj1.setCostPerformanceScore("1");
obj1.setGmtCreate(StringUtils.parseDateTime("2021-01-01 00:00:00"));
obj1.setGmtModify(StringUtils.parseDateTime("2021-01-01 00:00:00"));
obj1.setHealthScore("1");
obj1.setHotelId(1L);
obj1.setHotelName("avds");
obj1.setId(1L);
obj1.setLocationScore("1");
obj1.setLoginUserId("1");
obj1.setOrderId(1L);
obj1.setPhoto("1");
obj1.setServiceScore("1");
obj1.setTotalScore("1");
obj1.setUserId(12L);
obj1.setUserNick("abd");
req.setParamInsertCommentReq(obj1);
AlitripFuturehotelContentAddcommentResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_futurehotel_content_addcomment_response>
    <insert_comment_rs>
        <cost_performance_score></cost_performance_score>
        <fh_code></fh_code>
        <fh_msg></fh_msg>
        <fh_success></fh_success>
        <gmt_create></gmt_create>
        <gmt_modify></gmt_modify>
        <health_score></health_score>
        <hotel_id></hotel_id>
        <hotel_name></hotel_name>
        <id></id>
        <is_delete></is_delete>
        <location_score></location_score>
        <order_id></order_id>
        <service_score></service_score>
        <total_score></total_score>
        <user_id></user_id>
        <user_nick></user_nick>
    </insert_comment_rs>
</alitrip_futurehotel_content_addcomment_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部