Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cweiske committed Jul 13, 2015
1 parent aded9e4 commit 425d1e2
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ speak with ``devs.ouya.tv``.
.. include:: api/devs.ouya.tv/api-v1-credit_card.post.rst
.. include:: api/devs.ouya.tv/api-v1-credit_card.put.rst
.. include:: api/devs.ouya.tv/api-v1-details.rst
.. include:: api/devs.ouya.tv/api-v1-developers-xxx-products.rst
.. include:: api/devs.ouya.tv/api-v1-discover.rst
.. include:: api/devs.ouya.tv/api-v1-discover-home.rst
.. include:: api/devs.ouya.tv/api-v1-events.rst
Expand Down
16 changes: 16 additions & 0 deletions api/devs.ouya.tv/api-v1-developers-xxx-products.response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"developerName": "AppBarbecue Inc.",
"currency": "USD",
"products": [
{
"type": "entitlement",
"description": "Instantly unlock full game with all Pro Levels. The challenging puzzles will take days to solve. Explore Assyria, Hanging Gardens & more. ",
"percentOff": 0,
"originalPrice": 4.99,
"localPrice": 4.99,
"priceInCents": 499,
"name": "Unlock All Pro Levels",
"identifier": "unlock_pro"
}
]
}
51 changes: 51 additions & 0 deletions api/devs.ouya.tv/api-v1-developers-xxx-products.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
============================================================
``GET https://devs.ouya.tv/api/v1/developers/xxx/products/``
============================================================

FIXME: Fetch details about a game purchase option


Usage
=====
- When the user starts a game and pressed "Sync" in the store
(at "Babylonian Twins")


HTTP request
============
Protocol
``https``
Method
``GET``
Host
``devs.ouya.tv``
Path
``/api/v1/developers/xxx/products/``

``xxx``
Developer UUID

Example: ``/api/v1/developers/c4e46efe-05fd-4be9-9d7e-1f7607eabd49/products/``
Headers
Standard headers
GET parameters
``auth_token``
Same as ``X-OUYA-AuthToken``
``only``
Product key (same as ``Identifier`` in ``promotedProduct`` of app details)

Example: ``&only=unlock_pro``


HTTP response
=============
Status code
``200 OK``
Content-type
``application/json; charset=utf-8``

Example
-------

.. include:: api-v1-developers-xxx-products.response.json
:code:

0 comments on commit 425d1e2

Please sign in to comment.