Some details info
[ouya-store-api.git] / api / devs.ouya.tv / api-v1-sessions.rst
index 5c682ad68807614bc726fd0ba0cd5e119502617c..ca4487d3d97e845d05c32b556f6797096a6fadf7 100644 (file)
@@ -9,12 +9,19 @@ This token is stored in the console and used in the
 ``auth_token`` GET parameter.
 
 
+Usage
+=====
+
+#. After logging with an existing account
+#. After new user registration
+
+
 HTTP request
 ============
 Protocol
   ``https``
 Method
-  ``GET``
+  ``POST``
 Host
   ``devs.ouya.tv``
 Path
@@ -40,6 +47,9 @@ Success
 -------
 When the user logged in successfully.
 
+.. note:: If the user is already logged in, the old ``auth_token`` is returned.
+          No new token is issued in this case.
+
 Status code
   ``200 OK`` 
 Content type
@@ -47,7 +57,7 @@ Content type
 
 Response body example:
 
-.. include:: api-v1-sessions-response-valid.json
+.. include:: api-v1-sessions.response-valid.json
    :code:
 
 
@@ -66,5 +76,5 @@ Content type
 
 Response body example:
 
-.. include:: api-v1-sessions-response-invalid.json
+.. include:: api-v1-sessions.response-invalid.json
    :code: