Razer Forge TV login endpoints
[ouya-store-api.git] / api / devs.ouya.tv / api-v1-gamers-me.rst
1 =============================================
2 ``GET https://devs.ouya.tv/api/v1/gamers/me``
3 =============================================
4
5 Fetch username, e-mail and other data about the user currently logged in.
6
7 HTTP request
8 ============
9 Protocol
10   ``https``
11 Method
12   ``GET``
13 Host
14   ``devs.ouya.tv``
15 Path
16   ``/api/v1/gamers/me``
17 Headers
18   Standard headers
19 GET parameters
20   ``auth_token``
21     Same data as in standard header ``X-OUYA-AuthToken``
22
23
24 HTTP response
25 =============
26 Status code
27   ``200 OK``
28 Content type
29   ``application/json; charset=utf-8``
30
31 Example:
32
33 .. include:: api-v1-gamers-me.response.json
34    :code:
35
36 Razer Forge TV want this additional properties:
37
38 ``nickname``
39   Same as ``username`` on the OUYA.
40   When not set, the Forge asks to enter the nickname during login.
41 ``avatar``
42   URL of a custom avatar image