Method: accounts.productReviews.insert
Chèn bài đánh giá sản phẩm.
Yêu cầu HTTP
POST https://merchantapi.googleapis.com/reviews/v1beta/{parent=accounts/*}/productReviews:insert
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
parent |
string
Bắt buộc. Tài khoản mà bạn sẽ chèn bài đánh giá sản phẩm. Định dạng: accounts/{account}
|
Tham số truy vấn
Thông số |
dataSource |
string
Bắt buộc. Định dạng: accounts/{account}/dataSources/{datasource} .
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của ProductReview
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của ProductReview
.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/content
Để biết thêm thông tin, hãy xem OAuth 2.0 Overview.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-01-23 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-01-23 UTC."],[[["Inserts a new product review for a specified account using an HTTP POST request."],["Requires specifying the parent account and data source using path and query parameters, respectively."],["The request body must contain a `ProductReview` object, and a successful response will return the created `ProductReview`."],["Authorization is required using the `https://www.googleapis.com/auth/content` OAuth scope."]]],["This document details the process for inserting a product review via an HTTP POST request to `https://merchantapi.googleapis.com/reviews/v1beta/{parent=accounts/*}/productReviews:insert`. It requires specifying the `parent` account in the path and the `dataSource` in the query. The request body and the response body are both instances of `ProductReview`. Authorization is managed via the `https://www.googleapis.com/auth/content` OAuth scope. The user can try to use this API by clicking on \"Try it!\" at the bottom of the document.\n"]]