More work on 204 and profile
[playjam-gamestick-api-docs.git] / api / l2.gamestickservices.net / api-rest-player-profile-view.json.rst
1 =========================================================================
2 ``GET http://l2.gamestickservices.net/api/rest/player/profile/view.json``
3 =========================================================================
4
5 Fetch player information.
6
7 In firmware v2071 OOBE setup will not finish when the profile is not returned
8 properly.
9
10
11 HTTP request
12 ============
13 Protocol
14   ``http``
15 Host
16   ``l2.gamestickservices.net``
17 Path
18   ``/api/rest/player/profile/view.json;jsessionid=xxx``
19
20   ``xxx``
21     Session ID from the registration check
22     ``api/rest/connect/stick/stick/xxx/view.json``.
23
24     Empty when not registered yet.
25
26
27 HTTP response
28 =============
29
30 Not registered yet
31 ------------------
32 Status code
33   ``200 OK``
34
35 FIXME
36
37
38 User has been registered
39 ------------------------
40 Property notes:
41
42 ``body.securityLevel``
43   Known values:
44
45   - ``0``: default
46 ``body.balance.transactions[].date``
47   Must contain the string " - " (space dash space).
48   Before: date, after: description
49
50
51 .. include:: api-rest-player-profile-view.json.response-full.json
52    :code:
53
54
55
56 Usage
57 =====
58 - ``com.playjam.Services.Database.ServiceCore#downloadProfile()``