PUT https://devs.ouya.tv/api/v1/credit_card
authorChristian Weiske <[email protected]>
Sat, 27 Jun 2015 21:13:04 +0000 (23:13 +0200)
committerChristian Weiske <[email protected]>
Sat, 27 Jun 2015 21:13:04 +0000 (23:13 +0200)
README.rst
api/devs.ouya.tv/api-v1-credit_card.put.get-body.txt [new file with mode: 0644]
api/devs.ouya.tv/api-v1-credit_card.put.response.json [new file with mode: 0644]
api/devs.ouya.tv/api-v1-credit_card.put.rst [new file with mode: 0644]
api/ott9.wpstn.com/live.rst

index 99daeab00f606c0409c7ecafe7149fe18e915b36..f20e8f12c56dc658460692589ced38b05dd62e40 100644 (file)
@@ -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 (file)
index 0000000..b3d1fac
--- /dev/null
@@ -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 (file)
index 0000000..3eb3678
--- /dev/null
@@ -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 (file)
index 0000000..500188e
--- /dev/null
@@ -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:
index 0fdd5802425f3532d64b4c8cff83ba6bcd015d52..0ec51490bf06ce8f67133a8eb6373a00e81483c2 100644 (file)
@@ -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.