Some details info
[ouya-store-api.git] / api / devs.ouya.tv / api-v1-ratings.post.rst
1 ============================================
2 ``POST https://devs.ouya.tv/api/v1/ratings``
3 ============================================
4
5 Store the rating of a single game
6
7 Usage
8 =====
9 Directly after a user rated a game on the exit screen.
10
11
12 HTTP request
13 ============
14 Protocol
15   ``https``
16 Method
17   ``POST``
18 Host
19   ``devs.ouya.tv``
20 Path
21   ``/api/v1/ratings``
22 Headers
23   Standard headers
24 GET parameters
25   ``auth_token``
26     Same as ``X-OUYA-AuthToken``
27 POST parameters
28   ``auth_token``
29     Same as ``X-OUYA-AuthToken``
30   ``game``
31     Package name of the game
32
33     E.g. ``com.littleguy77.filepwn``
34   ``score``
35     integer
36
37     1 to 5:
38
39     1
40       Hate it
41     2
42       Don't like it
43     3
44       Like it
45     4
46       Really like it
47     5
48       Love it
49
50 HTTP response
51 =============
52 Status code
53   ``200 OK``
54 Content-type
55   ``application/json; charset=utf-8``
56
57 Example::
58
59     {
60         "success": true
61     }
62