Reviews¶
-
GET/reviews/product/(int: game_id).json¶ Returns the reviews for a game.
Query Parameters: - page – Page number
Example request:
GET /reviews/product/1207659103.json HTTP/1.1 Host: embed.gog.com
Example response:
{ "reviews": [ { "id": 12345, "title": "Really Good Game", "teaser": "Best Point&Click game ever.", "description": "Best Point&Click game ever. I like it.", "author": { "name": "Yepoleb", "avatarPath": "https://images.gog.com/3f9e109ac09308f7d52c607c8571e63d5fb482acca499a83e767dfff7f00d57d_avm.jpg", "id": "48628349971017" }, "helpfulVotes": 182, "totalVotes": 218, "rating": 50, "added": 1238880457, "edited": -62169992008 } ], "ts": null, "page": 1, "totalPages": 19, "totalResults": "92" }
-
POST/reviews/vote/review/(int: review_id).json¶ Vote if an individual review is helpful.
Parameters: - review_id (int) – ID of the review to be voted on
Request JSON Object: - wasHelpful (bool) – Whether the review was helpful or not
Example request:
POST /reviews/vote/review/1234567.json HTTP/1.1 Host: embed.gog.com Content-Type: application/json;charset=UTF-8 { "wasHelpful": true }
Example response:
{}
-
POST/reviews/report/review/(int: review_id).json¶ Reports a review.
Example request:
GET /reviews/report/review/10123.json HTTP/1.1 Host: embed.gog.com Content-Type: application/json;charset=UTF-8 {}
Example response:
{ "reported": true }
-
POST/reviews/rate/product/(int: game_id).json¶ Submits a game rating.
Request JSON Object: - rating (int) – Rating in stars * 10
Example request:
GET /reviews/rate/product/1436869408.json HTTP/1.1 Host: embed.gog.com Content-Type: application/json;charset=UTF-8 { "rating": 40 }
Example response:
{}
-
POST/reviews/add/product/(int: game_id).json¶ Submits a game review.
TODO