X-Git-Url: https://git.cweiske.de/ouya-store-api.git/blobdiff_plain/53c0b3d68eadcf67126be5cacf69879c380b641a..31e79389cb70f344cdda9560a7eed3c75fed32be:/api/devs.ouya.tv/api-v1-discover.rst diff --git a/api/devs.ouya.tv/api-v1-discover.rst b/api/devs.ouya.tv/api-v1-discover.rst index f778bab..2131850 100644 --- a/api/devs.ouya.tv/api-v1-discover.rst +++ b/api/devs.ouya.tv/api-v1-discover.rst @@ -39,7 +39,7 @@ details. ``rows`` -------- -Object with several properties: +Array with objects that have with several properties: ``showPrice`` ``true`` or ``false`` @@ -60,9 +60,32 @@ Object with several properties: ``tiles`` --------- -Describes a single application. +Array of objects that each describe a single application. + The position in the ``tiles`` array is the ID used by ``rows/tiles``. +``bundle`` + Only there when it's not a single game but a bundle of games that can be + bought. + + Object with the following properties: + + ``apps`` + array + + Array of ``package`` strings + ``currency`` + ``EUR`` + ``price`` + float + ``contentRating`` + See ``contentRating`` description below. + ``purchaseUrl`` + string + + URL where to initiate buying the bundle + + ``ouya://launcher/purchase?developer=ec1a9ccd-373f-4047-bd07-36466ab7e25d&product=ROBOBUNDLE`` ``contentRating`` For which audiences the game is meant @@ -82,13 +105,37 @@ The position in the ``tiles`` array is the ID used by ``rows/tiles``. Array of strings with genre titles. ``["Fight!", "Multiplayer", "Platformer"]`` + + Known genres: + + - Adventure + - App + - Arcade/Pinball + - Card/Casino + - Dual Stick + - Entertainment + - Fight! + - FPS/Shooter + - Kids List + - Meditative + - Multiplayer + - Music + - Platformer + - Puzzle/Trivia + - Racing + - Retro + - Role-Playing + - Short on Time? + - Sim/Strategy + - Sports + - Utility + - Video ``image`` URL to an image displayed in store view. Size should be 732x412. - ``png`` works. - FIXME: test ``jpg`` + ``.jpg`` and ``.png`` files work. ``inAppPurchases`` ``true`` or ``false`` @@ -114,6 +161,8 @@ The position in the ``tiles`` array is the ID used by ``rows/tiles``. ``promotedProduct`` object + Bundles do not have this property set. + ??? FIXME: What is that for? ``currency`` @@ -165,6 +214,8 @@ The position in the ``tiles`` array is the ID used by ``rows/tiles``. Name of the app/game ``type`` ``app`` or ``discover`` or ``details_page`` + + Bundles always have ``details_page``. ``updated_at`` integer @@ -176,10 +227,20 @@ The position in the ``tiles`` array is the ID used by ``rows/tiles``. ``url`` string - ``ouya://launcher/details?app=evil.corptron.DuckGame`` - URL for the game details page + Game details + ``ouya://launcher/details?app=evil.corptron.DuckGame`` + Bundle details + ``ouya://launcher/details?page=be239ca4-10fd-42dd-89cd-1806e80b1362`` + + See `GET https://devs.ouya.tv/api/v1/details`_. + +``title`` +--------- +string + +Always ``DISCOVER``. Example @@ -187,3 +248,7 @@ Example .. include:: api-v1-discover.response.json :code: + +The API git repository contains a full copy of the "discover" response +at ``api/devs.ouya.tv/api-v1-discover.response-full.json``. +