GET https://devs.ouya.tv/api/v1/apps/xxx/download
authorChristian Weiske <[email protected]>
Wed, 1 Jul 2015 13:16:05 +0000 (15:16 +0200)
committerChristian Weiske <[email protected]>
Wed, 1 Jul 2015 13:16:05 +0000 (15:16 +0200)
README.rst
api/devs.ouya.tv/api-v1-apps-xxx-download.response.json [new file with mode: 0644]
api/devs.ouya.tv/api-v1-apps-xxx-download.rst [new file with mode: 0644]

index d9deb4276ae4a8174d4175caf47417fecf974d25..5e54a5d4fa3844a408ae4cb3057133d913c6bd4c 100644 (file)
@@ -12,6 +12,7 @@ speak with ``devs.ouya.tv``.
 .. 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-apps-xxx.rst
+.. include:: api/devs.ouya.tv/api-v1-apps-xxx-download.rst
 .. include:: api/devs.ouya.tv/api-v1-console_configuration.rst
 .. include:: api/devs.ouya.tv/api-v1-credit_card.post.rst
 .. include:: api/devs.ouya.tv/api-v1-credit_card.put.rst
diff --git a/api/devs.ouya.tv/api-v1-apps-xxx-download.response.json b/api/devs.ouya.tv/api-v1-apps-xxx-download.response.json
new file mode 100644 (file)
index 0000000..ca57408
--- /dev/null
@@ -0,0 +1,8 @@
+{
+  "app": {
+    "downloadLink": "http://cds.t2z5c2q6.hwcdn.net/apps/a137f31c-ad28-47e6-ae43-0a346ebe249a/com.toa.tetrisFusionOuya/0fba3bba-83e0-4e3e-9f29-409258429757/Gx9cZz0KTRCNstv78Mq5_ToaFusionOuya-2.0.1r.apk",
+    "contentRating": "Everyone",
+    "version": "0fba3bba-83e0-4e3e-9f29-409258429757",
+    "fileSize": 41125055
+  }
+}
diff --git a/api/devs.ouya.tv/api-v1-apps-xxx-download.rst b/api/devs.ouya.tv/api-v1-apps-xxx-download.rst
new file mode 100644 (file)
index 0000000..ca90231
--- /dev/null
@@ -0,0 +1,48 @@
+=====================================================
+``GET https://devs.ouya.tv/api/v1/apps/xxx/download``
+=====================================================
+
+Fetch the download link for a specific version of an app.
+
+
+Usage
+=====
+- When the user clicks "download"
+
+
+
+HTTP request
+============
+Protocol
+  ``https``
+Method
+  ``GET``
+Host
+  ``devs.ouya.tv``
+Path
+  ``/api/v1/apps/xxx/download``
+
+  ``xxx``
+    ``latestVersion`` string from the apps details page
+
+  Example: ``/api/v1/apps/0fba3bba-83e0-4e3e-9f29-409258429757/download``
+Headers
+  Standard headers
+GET parameters
+  ``auth_token``
+    Same as ``X-OUYA-AuthToken``
+
+
+HTTP response
+=============
+Status code
+  ``200 OK``
+Content-type
+  ``application/json; charset=utf-8``
+
+
+Example
+-------
+
+.. include:: api-v1-apps-xxx-download.response.json
+   :code: