credit card data
[ouya-store-api.git] / api / devs.ouya.tv / api-v1-games-xxx-purchases.rst
1 =======================================================
2 ``GET https://devs.ouya.tv/api/v1/games/xxx/purchases``
3 =======================================================
4
5 FIXME: Check which features have been bought in an app, or if the app has been
6 bought.
7
8
9 Usage
10 =====
11 - When an app/game is featured and shown on the main menu ("home"),
12   it is checked if the app has already been purchased.
13
14
15 HTTP request
16 ============
17 Protocol
18   ``https``
19 Method
20   ``GET``
21 Host
22   ``devs.ouya.tv``
23 Path
24   ``/api/v1/games/xxx/purchases``
25
26   ``xxx``
27     app package name
28
29   Example: ``/api/v1/games/com.ChrisChung.CatlateralDamage/purchases``
30 Headers
31   Standard headers
32 GET parameters
33   ``auth_token``
34     Same as ``X-OUYA-AuthToken``
35   ``app_id``
36     ``com.ChrisChung.CatlateralDamage``
37
38     Same as the one in the path.
39   ``user_agent``
40     ``launcher``
41
42
43 HTTP response
44 =============
45 Status code
46   ``200 OK``
47 Content-type
48   ``application/json; charset=utf-8``
49
50 Example
51 -------
52
53 .. include:: api-v1-games-xxx-purchases.response.json
54    :code: