跳到主要内容

获取应用程序评论

注意

该门户网站正在开发中。文档的完整版本请看这里.

此方法允许获取您的应用程序的所有最新评论列表或单独获取某个评论。

限制:

  • 默认情况下,每个页面显示20条评论,您可以在size参数中设置,最多显示100条评论;
  • 不能同时使用分页和过滤参数来仅显示1条评论(要么用page和size参数进行分页,要么使用id)。
  • 如果用户编辑了评论,则该评论将被分配一个更新的评论id,并且评论的编辑标志(edited)将设置为true;
  • 默认情况下,评论按发布日期(updatedAt参数)排序,从最新的评论开始排序。

交互参数

GEThttps://public-api.rustore.ru/public/v1/application/{packageName}/comment?id={id}&page={number}&size={size}

属性类型必须布局描述填写示例
Public-TokenstringheaderRuStore API 访问令牌
packageNamestringpath应用程序包名称。最大长度为50个字符com.myapp.example
idnumberquery特定评论的Id。在需要获取特定评论时设置743103
pagenumberquery页面编号。从0开始0
sizenumberquery每页的评论数量。默认为20,最大为100100

响应参数

属性类型必须描述填写示例
codestring响应代码error/OK
messagestring响应代码解释
timestamptimestamptz响应时间2022-07-08T13:24:41.8328711+03:00
body{}object

body

属性类型必须描述示例
packageNamestring应用程序包的名称com.myapp.example
appIdnumber应用程序ID385727
commentIdnumber评论ID697535
userNamestring评论作者名称Irina
appRatingnumber评论评分4
commentStatusstring评论状态PUBLISHED
commentDatetimestamptz评论留下的日期2023-05-22 16:32:08.008
commentTextstring评论文本一切都很棒!
likeCounternumberRuStore展示平台上其他用户对该评论的点赞数5
dislikeCounternumberRuStore展示平台上其他用户对该评论的点踩数0
updatedAttimestamptz评论通过审核并在系统中发布的日期2022-10-14 15:14:33.033
appVersionNamestring应用程序版本1.4
editedboolean评论编辑标志True - 已编辑(评论已编辑并已重新写入)。False - 否

多条评论的输出示例

curl --location 'https://public-api.rustore.ru/public/v1/application/ru.voonsh.push/comment' \
--header 'Content-Type: application/json' \
--header 'Public-Token: eyJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiUlNBLU9BRVAtMjU2In0.jrVl3YT99saGcata9fzN6_QpoQhDsv8oBUAj9p7UyR4Ga5PM8TTyNbpTKIeaIjGoEfsBMJx0aw0b7fhD04bhSp7SWEBKGBTzFCjwOZ5_Fcezq0-NOMSayzoPttYa7oMRDiqNS4rqaUOdCUrf9qlDyEq3BGoUYCaUD7L5399l51NhSLrWpoPx1l4ZLVJ5bjlhiCoPAtLArnulq5LBoDk3naoGaRHabkkffcucEjA45uNpCsq0fx77Lk4YhN30LOccyImE-O8fUq8YryMWv4w-ZmWjax1oT9nRgO95r9EYG7Gwdekg2ILuWnsofiMXME8t1EiEuUmDpNTEyS9SiUMRwQ.lSJBV1mSmHehuqVs.8pXL_GRLwEJgIWZOzkklKgrsGKKJrG9kv1AIdD0PPU8KtsY8GVAc5xaaQgeyjSsJiSUvma_IohAaIBwP-tjTRxrnzVinMhKAJMCbiMIVqsQSRDB5j_mf91nTNewQkWJwB33Rvxd9F4Tt-Tk-1QKALU8tAT_HXAI.v9WBgx8T6yFDpeMrjw-ECQ'

示例回复

{
"code": "OK",
"message": null,
"body": [
{
"packageName": "ru.voonsh.push",
"appId": 227169215,
"commentId": 2142370751,
"userName": "Saber",
"appRating": 5,
"commentStatus": "PUBLISHED",
"commentDate": "2023-06-13 11:58:06.006",
"commentText": "Good App, nice done!",
"likeCounter": 0,
"dislikeCounter": 0,
"updatedAt": "2023-06-13 11:59:50.050",
"appVersionName": "1.4",
"edited": false
},
{
"packageName": "ru.voonsh.push",
"appId": 227169215,
"commentId": 1981700287,
"userName": "维克托",
"appRating": 5,
"commentStatus": "PUBLISHED",
"commentDate": "2023-04-27 18:54:27.027",
"commentText": "优秀的应用程序!;#",
"likeCounter": 0,
"dislikeCounter": 0,
"updatedAt": "2023-04-27 18:55:30.030",
"appVersionName": "1.3",
"edited": false
},
{
"packageName": "ru.voonsh.push",
"appId": 227169215,
"commentId": 1981699775,
"userName": "格里高里",
"appRating": 5,
"commentStatus": "PUBLISHED",
"commentDate": "2023-04-27 18:54:18.018",
"commentText": "优秀的应用程序!",
"likeCounter": 1,
"dislikeCounter": 0,
"updatedAt": "2023-04-27 18:55:30.030",
"appVersionName": "1.3",
"edited": false
},
{
"packageName": "ru.voonsh.push",
"appId": 227169215,
"commentId": 237681343,
"userName": "Ибрагим",
"appRating": 5,
"commentStatus": "PUBLISHED",
"commentDate": "2022-09-15 17:26:46.046",
"commentText": "提高DAU(日活跃用户数)",
"likeCounter": 1,
"dislikeCounter": 1,
"updatedAt": "2022-09-16 18:06:39.039",
"appVersionName": null,
"edited": false
}
],
"timestamp": "2023-06-15T07:32:55.505979576+03:00"
}

用于显示特定评论的示例

{    "code": "OK",    "message": null,    "body": \[        {            "packageName": "ru.voonsh.push",            "appId": 227169215,            "commentId": 2142370751,            "userName": "Saber",            "appRating": 5,            "commentStatus": "PUBLISHED",            "commentDate": "2023-06-13 11:58:06.006",            "commentText": "Good App, nice done!",            "likeCounter": 0,            "dislikeCounter": 0,            "updatedAt": "2023-06-13 11:59:50.050",            "appVersionName": "1.4",            "edited": false        },        {            "packageName": "ru.voonsh.push",            "appId": 227169215,            "commentId": 1981700287,            "userName": "维克托",            "appRating": 5,            "commentStatus": "PUBLISHED",            "commentDate": "2023-04-27 18:54:27.027",            "commentText": "优秀的应用程序! ;#",            "likeCounter": 0,            "dislikeCounter": 0,            "updatedAt": "2023-04-27 18:55:30.030",            "appVersionName": "1.3",            "edited": false        },        {            "packageName": "ru.voonsh.push",            "appId": 227169215,            "commentId": 1981699775,            "userName": "格里高里",            "appRating": 5,            "commentStatus": "PUBLISHED",            "commentDate": "2023-04-27 18:54:18.018",            "commentText": "优秀的应用程序!",            "likeCounter": 1,            "dislikeCounter": 0,            "updatedAt": "2023-04-27 18:55:30.030",            "appVersionName": "1.3",            "edited": false        },        {            "packageName": "ru.voonsh.push",            "appId": 227169215,            "commentId": 237681343,            "userName": "伊布拉欣",            "appRating": 5,            "commentStatus": "PUBLISHED",            "commentDate": "2022-09-15 17:26:46.046",            "commentText": "提高DAU(日活跃用户数)",            "likeCounter": 1,            "dislikeCounter": 1,            "updatedAt": "2022-09-16 18:06:39.039",            "appVersionName": null,            "edited": false        }\],"timestamp":"2023-06-15T07:32:55.505979576+03:00"}

用于显示特定评论的示例

curl --location 'https://public-api.rustore.ru/public/v1/application/ru.voonsh.push/comment?id=1981699775' \<br\>--header'Content-Type:application/json'\<br\>--header'Public-Token:eyJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiUlNBLU9BRVAtMjU2In0.h635qF_TZc43287jXQVImu\_-o4eVFQwrQYe2WnjbywC_KUC4oX6W3ssyPWzlAugd2RELbVCTk1wiDdKwPIbkOJC_HdF0yAmnPg0PRxwyfCHblRuccuuEg_l6sKY1Fqrh6kH3D5N2i_HnDei-hTusAvHR333ZstAK73dc-4Ecn24jb1XyBsdg0_KddKaRpEjTMSudIV6rdpBNMlQRUyQufrP2RMXK5Kc_0gY0iA-tazQoOJmK4xstHmuFbSBx3J6oN5QIlYonx0LZ6ABf2fD0O1E7LFsVUMd2bOdLYg5id5bTRXKd238iB5snmPhGJJN3d6v8xdoV5TdOMGPvjO0A5A.-mSbEMAvEglyEOJu.eKxraHkohwEcn3cG4glUBnwypjnapol4WnwhQGyKe-TDq9TGNj9CO4hnXGh4UPSRI55w73pJwSCuDe7LfsQ8zqBVjirT_HXypowHsWBwvBG-6rwSRvhZsad2YY8wHTZeXOddVynWnESoKAnXIdImafEbIWN1Hik.VJ-b1KxDxMrgJTz_Vuul2Q'

示例回复

{"code":"OK","message":null,"body":\[{"packageName":"ru.voonsh.push","appId":227169215,"commentId":1981699775,"userName":"格里高里","appRating":5,"commentStatus":"PUBLISHED","commentDate":"2023-04-2718:54:18.018","commentText":"优秀的应用程序!","likeCounter":1,"dislikeCounter":0,"updatedAt":"2023-04-2718:55:30.030","appVersionName":"1.3","edited":false}\],"timestamp":"2023-06-15T07:13:16.309841987+03:00"}