more info
[ouya-store-api.git] / api / devs.ouya.tv / api-v1-gamers-key.put.rst
1 ==============================================
2 ``PUT https://devs.ouya.tv/api/v1/gamers/key``
3 ==============================================
4
5 Store an encryption key on the server
6
7 FIXME: When is that key needed?
8
9 HTTP request
10 ============
11 Protocol
12   ``https``
13 Method
14   ``PUT``
15 Host
16   ``devs.ouya.tv``
17 Path
18   ``/api/v1/gamers/key``
19 Headers
20   Standard headers
21
22   ``Content-Type``
23     ``application/x-www-form-urlencoded``
24 GET parameters
25   ``auth_token``
26     Same data as in standard header ``X-OUYA-AuthToken``
27 POST parameters
28   ``auth_token``
29     Same data as in standard header ``X-OUYA-AuthToken``
30   ``gamer[key]``
31     string
32
33     FIXME encryption key
34   ``gamer[password]``
35     string
36
37     User account password
38   ``gamer[username]``
39     string
40
41     User account name
42
43 Example key::
44
45   -----BEGIN PUBLIC KEY-----
46   MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCvf3MvvZui5shNGbt2O0zveXrtfHZNivowNKiO
47   UagJARKCJmjOJVtZ1srCe95Eul/xBDPDEaH8vJetn5Pl99QwhdYL1ps9mUhmocx90LavQsipr2Dw
48   B7XshwN/EpW0uR/R84a3yXozpk7dgXi4+y//A+XT+MqgxsY6cdSGrBMsCQIDAQAB
49   -----END PUBLIC KEY-----
50
51
52 HTTP response
53 =============
54 Status code
55   ``201 Created``
56 Content type
57   ``application/json; charset=utf-8``
58 Body
59   ``{}``