wx/wxapi2/wx_comment_by_url

通过文章URL获取该文章评论信息

URL

http://open.gsdata.cn/api/wx/wxapi2/wx_comment_by_url

请求方式

POST

访问授权限制

访问级别:普通接口
频次限制:

请求参数

参数名称 必选 类型及范围 说明
appid true string 此参数为API用户唯一标识,数值为平台分配的用户appid
appkey true string 此参数为API用户签名私钥,值为平台分配的用户appkey
url true string 微信官方文章地址(例:http://mp.weixin.qq.com/s?__biz=MTgwNTE3Mjg2MA==&mid=400910104&idx=1&sn=e74321094048d1a6d356fa25a51d77e7)

返回结果

 JSON示例
  1. "returnCode" :"1001",
  2. "returnMsg" :"接口调用成功",
  3. "feeCount" :984139.0,
  4. "returnData" :{
  5. "status" :"1",
  6. "data" :[{
  7. "id" :216,
  8. "table_name" :0,
  9. "content" :"贱兔!中午去哪浪了?我的冷兔趣闻呢?",
  10. "nick_name" :"这芹菜。。。有毒!",
  11. "logo_url" :"http://wx.qlogo.cn/mmhead/PiajxSqBRaEIics1dLJQ46Uqn2O2IczicRY8rE8PUtrfJPz7FpuM02gag/132",
  12. "create_time" :"1449489098",
  13. "like_id" :"10001",
  14. "like_num" :4918,
  15. "like_status" :0,
  16. "get_time" :"2015-12-08 17:15:56",
  17. "is_from_friend" :"0",
  18. "is_from_me" :"0",
  19. "reply" :{
  20. "reply_list" :[{
  21. "content" :"在国外啊今天一直在外奔波。明天恢复",
  22. "uin" :1805172860,
  23. "create_time" :1449489141,
  24. "reply_id" :1,
  25. "to_uin" :302079760
  26. "to_uin" :302079760
  27. "to_uin" :302079760
  28. }]
  29. }
  30. }, {
  31. "id" :278,
  32. "table_name" :0,
  33. "content_id" :"3211632924537389103",
  34. "content" :"关于女生的不好意思我全中",
  35. "nick_name" :"思念苦无药",
  36. "logo_url" :"http://wx.qlogo.cn/mmhead/miaiaKiafsbiaI6JWwiap6xBH8AA66cx3Kmgdvx3jNJ1J2q8/132",
  37. "create_time" :"1449489138",
  38. "like_id" :"10002",
  39. "like_num" :4349,
  40. "like_status" :0,
  41. "get_time" :"2015-12-08 17:15:56",
  42. "is_from_friend" :"0",
  43. "is_from_me" :"0",
  44. "reply" :{
  45. "reply_list" :[]
  46. }
  47. }, {
  48. "id" :280,
  49. "table_name" :0,
  50. "content_id" :"655624760574607362",
  51. "content" :"兔兔,今晚有点短噢/左哼哼/右哼哼",
  52. "nick_name" :"柠檬会心酸啊",
  53. "logo_url" :"http://wx.qlogo.cn/mmhead/PiajxSqBRaEIldHico9YctY7aYdt5A5aEN9aW2qT8HZTQ2p9wtuCRP9A/132",
  54. "create_time" :"1449489139",
  55. "like_id" :"10003",
  56. "like_num" :3455,
  57. "like_status" :0,
  58. "get_time" :"2015-12-08 17:15:56",
  59. "is_from_friend" :"0",
  60. "is_from_me" :"0",
  61. "reply" :{
  62. "reply_list" :[{
  63. "content" :"哦",
  64. "uin" :1805172860,
  65. "create_time" :1449489173,
  66. "reply_id" :1,
  67. "to_uin" :152649535
  68. }]
  69. }
  70. }],
  71. "msg" :"评论获取成功"
  72. }
  73. }

关于错误返回值与错误代码,参见 错误代码说明

返回值字段 类型 说明
status int 返回状态标识(1:成功)
data json list 评论详情集合]
id int 单条评论ID]
table_name string 预留字段(可以忽略)]
content_id long 评论正文ID]
nick_name string 评论者昵称]
logo_url string 评论者头像logo]
create_time long 评论创建时间]
like_id int 点赞ID]
like_num int 点赞数量]
like_status int 点赞状态(可以忽略)]
get_time long 评论获取时间]
is_from_friend int 是否来自好友账号(可以忽略)]
is_from_me int 是否来自本账号(可以忽略)]
reply json 文章作者回复]
reply_list json list 文章作者回复集合]
content string 回复正文]
uin long uin(可以忽略)]
create_time long 回复时间]
to_uin long to_uin(可以忽略)]
msg int 接口调用信息描述]

文档更新时间: 2016-01-07