From: Christian Weiske Date: Thu, 18 Jun 2015 12:47:06 +0000 (+0200) Subject: api/firmware_builds, api/v1-console_configuration, update_strings.txt X-Git-Tag: v1.1~62 X-Git-Url: https://git.cweiske.de/ouya-store-api.git/commitdiff_plain/d911d3b18b6e1ae614c15021105f0505dddcc934 api/firmware_builds, api/v1-console_configuration, update_strings.txt --- diff --git a/README.rst b/README.rst index b683a13..511b732 100644 --- a/README.rst +++ b/README.rst @@ -9,4 +9,6 @@ speak with ``devs.ouya.tv``. .. include:: headers.rst .. include:: api/status.ouya.tv/api-v1-status.rst +.. include:: api/devs.ouya.tv/api-firmware_builds.rst .. include:: api/devs.ouya.tv/api-v1-console_configuration.rst +.. include:: api/devs.ouya.tv/update_strings.txt.rst diff --git a/api/devs.ouya.tv/api-firmware_builds-response-short.json b/api/devs.ouya.tv/api-firmware_builds-response-short.json new file mode 100644 index 0000000..91b541d --- /dev/null +++ b/api/devs.ouya.tv/api-firmware_builds-response-short.json @@ -0,0 +1,21 @@ +{ + "result": [ + { + "incremental": false, + "filename": "OUYA-1.2.1427-r1.zip", + "timestamp": "1418407476", + "md5sum": "3a95be82b4c33bd68353dc314346f39f", + "channel": "stable", + "url": "http://cds.t2z5c2q6.hwcdn.net/ota/RC-OUYA-1.2.1427-r1_ota.zip", + "requiredUpto": "1.2.995", + "changes": "https://devs.ouya.tv/api/changelog/3a95be82b4c33bd68353dc314346f39f.txt", + "changesLocalized": { + "de": " \r\n\r\n...", + "it": "\r\n\r\n..", + "fr": "\r\n\r\n..", + "es": "\r\n\r\n..", + "en": "\r\n\r\n.." + } + } + ] +} diff --git a/api/devs.ouya.tv/api-firmware_builds-response.json b/api/devs.ouya.tv/api-firmware_builds-response.json new file mode 100644 index 0000000..620b1a9 --- /dev/null +++ b/api/devs.ouya.tv/api-firmware_builds-response.json @@ -0,0 +1,21 @@ +{ + "result": [ + { + "incremental": false, + "filename": "OUYA-1.2.1427-r1.zip", + "timestamp": "1418407476", + "md5sum": "3a95be82b4c33bd68353dc314346f39f", + "channel": "stable", + "url": "http://cds.t2z5c2q6.hwcdn.net/ota/RC-OUYA-1.2.1427-r1_ota.zip", + "requiredUpto": "1.2.995", + "changes": "https://devs.ouya.tv/api/changelog/3a95be82b4c33bd68353dc314346f39f.txt", + "changesLocalized": { + "de": " \r\n\r\n \r\n \r\n \r\n \r\n OUYA System Update \"Chickcharney\"\r\n \r\n \r\n \r\n \r\n \"Chickcharney\"-HOTFIX Nr. 2 12/15\r\n \r\n\r\n \"Chickcharney\"-HOTFIX Nr. 1\r\n \r\n OUYA-System-Update \"Chickcharney\"\r\n \r\n \r\n \r\n \r\n \r\n \r\n", + "it": "\r\n\r\n \r\n \r\n \r\n \r\n OUYA System Update \"Chickcharney\"\r\n \r\n \r\n \r\n HOTFIX \"Chickcharney\" #2 12/15\r\n \r\n\r\n \"Chickcharney\" HOTFIX #1\r\n \r\n \r\n Aggiornamento sistema OUYA \"Chickcharney\"\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n", + "fr": "\r\n\r\n \r\n \r\n \r\n \r\n OUYA System Update \"Chickcharney\"\r\n \r\n \r\n \r\n \r\n \"Chickcharney\" CORRECTIF #2 12/15\r\n \r\n\r\n \"Chickcharney\" CORRECTIF #1\r\n \r\n \r\n Mise à jour système OUYA \"Chickcharney\"\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n", + "es": "\r\n\r\n \r\n \r\n \r\n \r\n OUYA System Update \"Chickcharney\"\r\n \r\n \r\n \r\n \r\n Chickcharney: revisión 2 12/15\r\n \r\n \r\n Chickcharney: REVISIÓN 1\r\n \r\n \r\n Actualización del sistema OUYA: \"Chickcharney\"\r\n \r\n \r\n \r\n \r\n \r\n", + "en": "\r\n\r\n \r\n \r\n \r\n \r\n OUYA System Update \"Chickcharney\"\r\n \r\n \r\n \r\n \"Chickcharney\" HOTFIX #2 12/15\r\n\r\n \r\n\r\n\r\n \r\n \"Chickcharney\" HOTFIX #1 11/20\r\n\r\n \r\n \r\n OUYA System Update \"Chickcharney\" 11/3\r\n \r\n \r\n \r\n \r\n \r\n" + } + } + ] +} diff --git a/api/devs.ouya.tv/api-firmware_builds.rst b/api/devs.ouya.tv/api-firmware_builds.rst new file mode 100644 index 0000000..e9f5bb3 --- /dev/null +++ b/api/devs.ouya.tv/api-firmware_builds.rst @@ -0,0 +1,49 @@ +================================================ +``GET https://devs.ouya.tv/api/firmware_builds`` +================================================ + +List the latest available firmware version. + + +HTTP request +============ +Protocol + ``https`` +Method + ``GET`` +Host + ``devs.ouya.tv`` +Path + ``/api/firmware_builds`` +Headers + Standard headers + + Token parameters not required. +GET parameters + ``auth_token`` + May be empty. + + Does not seem to have any influence on the response. + + ``oobe`` + ``true`` + + Can be omitted. + + Does not seem to have any influence on the response. + + FIXME: what is that for? "Out Of (the) Box Experience"? Does it change anything? + + +HTTP response +============= +Status code + ``200 OK`` +Content type + ``application/json; charset=utf-8`` + +Example +------- + +.. include:: api-firmware_builds-response-short.json + :code: diff --git a/api/devs.ouya.tv/api-v1-console_configuration-response.json b/api/devs.ouya.tv/api-v1-console_configuration-response.json new file mode 100644 index 0000000..4fed910 --- /dev/null +++ b/api/devs.ouya.tv/api-v1-console_configuration-response.json @@ -0,0 +1 @@ +{"BTC_LAUNCHER_PACKAGES":"tv.ouya.xbmc,tunein.player,tv.twitch.android.viewer,com.plexapp.android,tv.ouya.bbciplayer,tv.ouya.hulu,tv.ouya.minecrafttv,tv.ouya.ouyabrowser,tv.ouya.pandora,tv.ouya.visiomgo,tv.ouya.youtube,tv.ouya.tubitv"} \ No newline at end of file diff --git a/api/devs.ouya.tv/api-v1-console_configuration.rst b/api/devs.ouya.tv/api-v1-console_configuration.rst index 4f4999d..6f6fe2a 100644 --- a/api/devs.ouya.tv/api-v1-console_configuration.rst +++ b/api/devs.ouya.tv/api-v1-console_configuration.rst @@ -26,3 +26,11 @@ GET parameters HTTP response ============= +Status code + ``200 OK`` + +Example +------- + +.. include:: api-v1-console_configuration-response.json + :code: diff --git a/api/devs.ouya.tv/update_strings.txt-response.txt b/api/devs.ouya.tv/update_strings.txt-response.txt new file mode 100644 index 0000000..343f496 --- /dev/null +++ b/api/devs.ouya.tv/update_strings.txt-response.txt @@ -0,0 +1,24 @@ +Preparing to televise the Revolution… +Downloading awesome sauce… +Maximizing fun level… +Shifting bits… +Tasting rainbows… +Herding cats… +Aligning synergies… +Shooting stars… +Well, I never! ಠ_ರೃ +Bending genres… +Stretching analogies… +Calculating odds… +Peeling away layers… +Reducing complexity… +Opening flaps… +Inventing emoticons… ≈:¬D +Sharpening skates… +Keeping calm… +Refactoring bezier curves… +We Must Perform A Quirkafleeg… +To be honest, just downloading a firmware update… +Rearranging deckchairs… +Arming Photon Torpedoes… +Adding the fun… diff --git a/api/devs.ouya.tv/update_strings.txt.rst b/api/devs.ouya.tv/update_strings.txt.rst new file mode 100644 index 0000000..c334232 --- /dev/null +++ b/api/devs.ouya.tv/update_strings.txt.rst @@ -0,0 +1,33 @@ +=============================================== +``GET https://devs.ouya.tv/update_strings.txt`` +=============================================== + +Labels to show when updating the firmware. + + +HTTP request +============ +Protocol + ``https`` +Method + ``GET`` +Host + ``devs.ouya.tv`` +Path + ``/update_strings.txt`` +Headers + None of the standard headers required. +GET parameters + None + + +HTTP response +============= +Plain text file with one string per line + + +Example +------- +.. include:: update_strings.txt-response.txt + :code: + :end-line: 5 diff --git a/api/status.ouya.tv/api-v1-status.rst b/api/status.ouya.tv/api-v1-status.rst index 8575da6..1e780f0 100644 --- a/api/status.ouya.tv/api-v1-status.rst +++ b/api/status.ouya.tv/api-v1-status.rst @@ -17,12 +17,13 @@ Path Headers None of the standard headers. - :: - - User-Agent: Ouya-Connection-Test + ``User-Agent`` + ``Ouya-Connection-Test`` HTTP response ============= Status code - 204 No Content + ``204 No Content`` + +Empty body. diff --git a/headers.rst b/headers.rst index 8a07079..4993fcb 100644 --- a/headers.rst +++ b/headers.rst @@ -31,21 +31,29 @@ from the OUYA console to the servers. Same as ``X-OUYA-AuthToken``. FIXME: Why two token headers? + + FIXME: Why ``auth_token`` GET parameter when there are headers? ``X-OUYA-Device`` ``ouya_1_1`` Probably hardware revision +``Accept-Encoding`` + ``gzip`` + + The OUYA understands gzip compression +``User-Agent`` + ``OUYA 0 1.00 1.2.1427_r1`` + + +Headers to ignore +================= ``Cookie`` ``__cfduid=da019d762142461c19f162c0ee443f9c71434577887`` - ??? FIXME + Comes from the cloudflare error page. Can be ignored. ``Cookie2`` ``$Version=1`` ??? FIXME -``Accept-Encoding`` - ``gzip`` - The OUYA understands gzip compression -``User-Agent`` - ``OUYA 0 1.00 1.2.1427_r1`` + Not on the cloudflare error page.