``GET https://devs.ouya.tv/api/v1/developers/xxx/current_gamer``
================================================================
-FIXME.
+Fetch gamer information from within a game.
Usage
=====
-- At the startup of knightmare tower (when bought)
+- At the startup of Knightmare Tower and Towerfall (when bought)
+
+
+HTTP request
+============
+Protocol
+ ``https``
+Method
+ ``GET``
+Host
+ ``devs.ouya.tv``
+Path
+ ``/api/v1/developers/xxx/current_gamer``
+
+ ``xxx``
+ Developer UUID
+Headers
+ Standard headers
+GET parameters
+ ``auth_token``
+ Same data as in standard header ``X-OUYA-AuthToken``
+
+
+HTTP response
+=============
+Status code
+ ``200 OK``
+Content-type
+ ``application/json; charset=utf-8``
+
+Same data as in ``gamers/me``.
+
+Example
+-------
+
+.. include:: api-v1-developers-xxx-current_gamer.response.json
+ :code:
Content-type
``application/json; charset=utf-8``
-Three properties:
+The response is a JSON objec containing three properties:
``iv``
Base 64 encoded initialization vector for encryption
``blob``
Base64 encoded encrypted data
-The decrypted ``blob`` contains again a JSON object with the following properties:
+The decrypted ``blob`` contains again a JSON object with three properties:
- ``iv``
- ``key``
- ``blob``
-This blob is again a base64-encoded JSON objecct and contains the actual data:
-An array of receipts/purchases.
+This blob is again base64-encoded JSON and contains the actual data:
+A JSON with a single property "purchases" whose value is
+an array of receipts/purchases.
+
+Each receipt has the following properties:
``purchaseDate``
Required. Milliseconds.