Method: accounts.merchantReviews.list
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
GET https://merchantapi.googleapis.com/reviews/v1beta/{parent=accounts/*}/merchantReviews
网址采用 gRPC 转码语法。
路径参数
参数 |
parent |
string
必需。要为其列出商家评价的账号。格式:accounts/{account}
|
查询参数
参数 |
pageSize |
integer
可选。要返回的商家评价的数量上限。服务返回的值可以小于此值。最大值为 1,000;大于 1,000 的值会强制转换为 1,000。如果未指定,则返回评价数量上限。
|
pageToken |
string
可选。从之前的 merchantReviews.list 调用接收的页面令牌。利用其进行后续页面检索。 进行分页时,提供给 merchantReviews.list 的所有其他参数必须与提供页面令牌的调用匹配。
|
响应正文
ListMerchantsReview
方法的响应消息。
如果成功,响应正文将包含结构如下的数据:
JSON 表示法 |
{
"merchantReviews": [
{
object (MerchantReview )
}
],
"nextPageToken": string
} |
字段 |
merchantReviews[] |
object (MerchantReview )
商家评价。
|
nextPageToken |
string
用于检索下一页结果的令牌。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/content
如需了解详情,请参阅 OAuth 2.0 Overview。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-23。
[null,null,["最后更新时间 (UTC):2025-01-23。"],[[["\u003cp\u003eLists all merchant reviews for a specified account, displaying details like review content and ratings.\u003c/p\u003e\n"],["\u003cp\u003eAllows pagination to retrieve large sets of reviews using \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e parameters.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/content\u003c/code\u003e scope for access.\u003c/p\u003e\n"],["\u003cp\u003eResponses include a list of MerchantReview objects and a token for retrieving subsequent pages.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.merchantReviews.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListMerchantReviewsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists merchant reviews.\n\n### HTTP request\n\n`GET https://merchantapi.googleapis.com/reviews/v1beta/{parent=accounts/*}/merchantReviews`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-----------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The account to list merchant reviews for. Format: accounts/{account} |\n\n### Query parameters\n\n| Parameters ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` Optional. The maximum number of merchant reviews to return. The service can return fewer than this value. The maximum value is 1000; values above 1000 are coerced to 1000. If unspecified, the maximum number of reviews is returned. |\n| `pageToken` | `string` Optional. A page token, received from a previous `merchantReviews.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `merchantReviews.list` must match the call that provided the page token. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse message for the `ListMerchantsReview` method.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"merchantReviews\": [ { object (/merchant/api/reference/rest/reviews_v1beta/accounts.merchantReviews#MerchantReview) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| `merchantReviews[]` | `object (`[MerchantReview](/merchant/api/reference/rest/reviews_v1beta/accounts.merchantReviews#MerchantReview)`)` The merchant review. |\n| `nextPageToken` | `string` The token to retrieve the next page of results. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/content`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]