From: Christian Weiske Date: Sat, 27 Jun 2015 21:13:04 +0000 (+0200) Subject: PUT https://devs.ouya.tv/api/v1/credit_card X-Git-Tag: v1.1~45 X-Git-Url: https://git.cweiske.de/ouya-store-api.git/commitdiff_plain/3a796cdd4a2df02264ffebfcdfc305126620240f PUT https://devs.ouya.tv/api/v1/credit_card --- diff --git a/README.rst b/README.rst index 99daeab..f20e8f1 100644 --- a/README.rst +++ b/README.rst @@ -13,6 +13,7 @@ speak with ``devs.ouya.tv``. .. include:: api/devs.ouya.tv/api-firmware_builds.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 .. include:: api/devs.ouya.tv/api-v1-events.rst .. include:: api/devs.ouya.tv/api-v1-gamers.rst .. include:: api/devs.ouya.tv/api-v1-gamers-me.rst diff --git a/api/devs.ouya.tv/api-v1-credit_card.put.get-body.txt b/api/devs.ouya.tv/api-v1-credit_card.put.get-body.txt new file mode 100644 index 0000000..b3d1fac --- /dev/null +++ b/api/devs.ouya.tv/api-v1-credit_card.put.get-body.txt @@ -0,0 +1,5 @@ +HTTP/1.1 303 See Otherlocation: https://devs.ouya.tv/wpsuccess?OTT=C187D8AE8970435C9638C58C8351E2DEF975680B737A4B55A3D314BF0C477F2A +Content-Length: 9 +Via: 1.1 localhost (Apache-HttpClient/UNAVAILABLE (cache)) +Date: Wed, 17 Jun 2015 21:51:23 GMT +See Other diff --git a/api/devs.ouya.tv/api-v1-credit_card.put.response.json b/api/devs.ouya.tv/api-v1-credit_card.put.response.json new file mode 100644 index 0000000..3eb3678 --- /dev/null +++ b/api/devs.ouya.tv/api-v1-credit_card.put.response.json @@ -0,0 +1,4 @@ +{ + "country": null, + "success": true +} diff --git a/api/devs.ouya.tv/api-v1-credit_card.put.rst b/api/devs.ouya.tv/api-v1-credit_card.put.rst new file mode 100644 index 0000000..500188e --- /dev/null +++ b/api/devs.ouya.tv/api-v1-credit_card.put.rst @@ -0,0 +1,53 @@ +=============================================== +``PUT https://devs.ouya.tv/api/v1/credit_card`` +=============================================== + +Store the result of the credit card storage request. + +Usage +===== +Called after `POST https://ott9.wpstn.com/live/`_. + +HTTP request +============ +Protocol + ``https`` +Method + ``PUT`` +Host + ``devs.ouya.tv`` +Path + ``/api/v1/credit_card`` +Headers + Standard headers + + ``Content-Type`` + ``application/x-www-form-urlencoded`` +GET parameters + ``auth_token`` + Same data as in standard header ``X-OUYA-AuthToken`` + ``body``: + Complete response including headers + ``zipcode``: + Postal code +POST parameters + ``auth_token`` + Same data as in standard header ``X-OUYA-AuthToken`` + +Example body parameter: + +.. include:: api-v1-credit_card.put.get-body.txt + :code: + + +HTTP response +============= +Status code + ``200 OK`` +Content type + ``application/json; charset=utf-8`` + +Example: + +.. include:: api-v1-credit_card.put.response.json + :code: diff --git a/api/ott9.wpstn.com/live.rst b/api/ott9.wpstn.com/live.rst index 0fdd580..0ec5149 100644 --- a/api/ott9.wpstn.com/live.rst +++ b/api/ott9.wpstn.com/live.rst @@ -61,3 +61,4 @@ Redirects to ``wpsuccess`` URL on devs.ouya.tv with the ``OTT`` parameter:: https://devs.ouya.tv/wpsuccess?OTT=C187D8AE8970... The redirect location header seems to be ignored; it does not get called. +Instead, `PUT https://devs.ouya.tv/api/v1/credit_card`_ is fetched.