Some details info
[ouya-store-api.git] / api / devs.ouya.tv / api-v1-events.rst
1 ===========================================
2 ``POST https://devs.ouya.tv/api/v1/events``
3 ===========================================
4
5 Send information about the last events on the OUYA console to the
6 logging/tracking server.
7
8
9 Usage
10 =====
11
12 #. Every now and then when enough events have been collected
13
14    FIXME: determine exact behavior
15
16
17 HTTP request
18 ============
19 Protocol
20   ``https``
21 Method
22   ``POST``
23 Host
24   ``devs.ouya.tv``
25 Path
26   ``/api/v1/events``
27 Headers
28   Standard headers
29
30   ``Content-Type``
31     ``application/x-www-form-urlencoded``
32 POST parameters
33   ``current_time``
34     ``1434577856574``
35
36     Unix timestamp, milliseconds.
37   ``console_id``
38     Same data as in standard header ``X-OUYA-Console-Id``
39   ``events``
40     JSON-encoded array of event objects
41   ``auth_token``
42     Same data as in standard header ``X-OUYA-AuthToken``
43
44 Example event JSON data:
45
46 .. include:: api-v1-events.request.json
47    :code:
48    :end-line: 30
49
50
51 HTTP response
52 =============
53 Status code
54   ``200 OK`` 
55 Content type
56   ``application/json; charset=utf-8``
57 Body
58   ``{}``