X-Git-Url: https://git.cweiske.de/ouya-store-api.git/blobdiff_plain/e9ffb0603c172442295a591b43c94ceedd38c567..02617d7998a317c262db625893024ed0da8e6b28:/api/devs.ouya.tv/api-v1-sessions.rst diff --git a/api/devs.ouya.tv/api-v1-sessions.rst b/api/devs.ouya.tv/api-v1-sessions.rst index 5c682ad..ca4487d 100644 --- a/api/devs.ouya.tv/api-v1-sessions.rst +++ b/api/devs.ouya.tv/api-v1-sessions.rst @@ -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: