Work in progress #6: Define header sets
authorChristian Weiske <cweiske@cweiske.de>
Sun, 7 Mar 2021 20:29:18 +0000 (21:29 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Sun, 7 Mar 2021 20:29:18 +0000 (21:29 +0100)
12 files changed:
api/headers.rst
api/pageplace.bosh-bosh-rest-dictionary-list.rst
api/pageplace.bosh-bosh-rest-handshake-resellers.rst
api/pageplace.bosh-bosh-rest-inventory-count.rst
api/pageplace.bosh-bosh-rest-ping.rst
api/pageplace.bosh-bosh-rest-recommendation-xyz.rst
api/pageplace.bosh-bosh-rest-sync-data.rst
api/pageplace.bosh-bosh-rest-upload.rst
api/pageplace.bosh-bosh-rest-userid-xxx.rst
api/pageplace.family-v1-family.rst
api/pageplace.family-v1-myself.rst
api/pageplace.family-v1-shares.rst

index e5306cb5767ade952e4c2c2abb02a040950b4fb2..80ab15c955763a48c5772d055dcb0599ca1f89b1 100644 (file)
@@ -10,3 +10,67 @@ Headers
   The browser:
 
   ``Mozilla/5.0 (Linux; Android 4.4.2; en-; tolino vision 3 HD/14.1.0) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Mobile Safari/537.36 READER OS_BUILD/KOT49H.41429.1044823``
+
+
+bosh v1 header set
+==================
+Headers common in all HTTP requests to ``https://bosh.pageplace.de/bosh/rest/...``
+(except ``../rest/v2/``).
+
+``t_auth_token``
+  OAuth token obtained from `POST https://thalia.de/auth/oauth2/token`_.
+
+  Example: ``eyJhbGciOiJSUzI1NiJ9.eyJhdWRpZW5jZSI6InRyZWFkZXJ2aXNpb24zIiw...``
+``Accept``
+  Example: ``application/json; charset=UTF-8``
+``m_id``
+  Probably the reseller ID
+
+  Example: ``3``
+``hardware_id``
+  FIXME: Serial number of the ebook reader?
+
+  Example: ``665fc389ef4e47258c5db9fa7821bd19``
+``Content-Type``
+  ``application/json; charset=UTF-8``
+
+  Always set even if there is no request body.
+``client_type``
+  Example: ``TOLINO_VISION_3``
+``client_version``
+  Example: ``14.1.0``
+
+
+family v1 header set
+====================
+``Authorization``
+  OAuth token obtained from `POST https://thalia.de/auth/oauth2/token`_.
+
+  Example: ``Bearer eyJhbGciOiJSUzI1NiJ9.eyJhdWRpZW5jZSI6InRyZWFkZXJ2aXNpb24zIiw...``
+``Accept``
+  Example: ``application/json; charset=UTF-8``
+``Accept-Encoding``
+  ``gzip``
+``m_id``
+  Probably reseller ID.
+
+  Example: ``3``
+``Hardware-Id``
+  Example: ``665fc389ef4e47258c5db9fa7821bd19``
+``Content-Type``
+  ``application/json; charset=UTF-8``
+
+  This is a lie; there is no request body.
+``client_type``
+  Example: ``TOLINO_VISION_3``
+``client_version``
+  Example: ``14.1.0``
+``Reseller-Id``
+  Example: ``3``
+``Cookie``
+  Multiple times:
+
+  -  ``OAUTH-JSESSIONID=3EFAEC6B69D811252C75861880C338AB.15acdb90; Path=/; Secure; HttpOnly``
+  - ``JSESSIONID=C0D8A077F6D2E13251ECDCD60FE6D18A``
+``Cookie2``
+  Example: ``$Version=1``
index c791158041dcf6bd4b1d68532ed511bef94c705d..db4f41b652a0b00e393b69888f20bb3350d6ed66 100644 (file)
@@ -9,29 +9,8 @@ Part of the `sync process`_.
 
 Request
 =======
-Header
-  ``t_auth_token``
-    OAuth token obtained from `POST https://thalia.de/auth/oauth2/token`_.
-
-    Example: ``eyJhbGciOiJSUzI1NiJ9.eyJhdWRpZW5jZSI6InRyZWFkZXJ2aXNpb24zIiw...``
-  ``Accept``
-    Example: ``application/json; charset=UTF-8``
-  ``m_id``
-    FIXME: Maybe reseller ID?
-
-    Example: ``3``
-  ``hardware_id``
-    Seems to be the same as the ``xxx`` value in the URL.
-
-    Example: ``665fc389ef4e47258c5db9fa7821bd19``
-  ``Content-Type``
-    ``application/json; charset=UTF-8``
-
-    This is a lie; there is no request body.
-  ``client_type``
-    Example: ``TOLINO_VISION_3``
-  ``client_version``
-    Example: ``14.1.0``
+Headers
+  See `bosh v1 header set`_
 
 No request body.
 
index 3bb8da5d4db9283107fa6b1dd14331a3b0784269..a1c2f15f57c5f47071eff94c58cc11200737c088 100644 (file)
@@ -14,28 +14,7 @@ Part of the `sync process`_.
 Request
 =======
 Header
-  ``t_auth_token``
-    OAuth token obtained from `POST https://thalia.de/auth/oauth2/token`_.
-
-    Example: ``eyJhbGciOiJSUzI1NiJ9.eyJhdWRpZW5jZSI6InRyZWFkZXJ2aXNpb24zIiw...``
-  ``Accept``
-    Example: ``application/json; charset=UTF-8``
-  ``m_id``
-    FIXME: Maybe reseller ID?
-
-    Example: ``3``
-  ``hardware_id``
-    Seems to be the same as the ``xxx`` value in the URL.
-
-    Example: ``665fc389ef4e47258c5db9fa7821bd19``
-  ``Content-Type``
-    ``application/json; charset=UTF-8``
-
-    This is a lie; there is no request body.
-  ``client_type``
-    Example: ``TOLINO_VISION_3``
-  ``client_version``
-    Example: ``14.1.0``
+  See `bosh v1 header set`_
 
 
 Response
index 1a6c184032b45226528ee9cbcf2ba15039b53f6e..d987ca870e886df9e3869ce132f8a1cad4583f0c 100644 (file)
@@ -10,28 +10,7 @@ Request
 =======
 
 Header
-  ``t_auth_token``
-    OAuth token obtained from `POST https://thalia.de/auth/oauth2/token`_.
-
-    Example: ``eyJhbGciOiJSUzI1NiJ9.eyJhdWRpZW5jZSI6InRyZWFkZXJ2aXNpb24zIiw...``
-  ``Accept``
-    Example: ``application/json; charset=UTF-8``
-  ``m_id``
-    FIXME: Maybe reseller ID?
-
-    Example: ``3``
-  ``hardware_id``
-    Seems to be the same as the ``xxx`` value in the URL.
-
-    Example: ``665fc389ef4e47258c5db9fa7821bd19``
-  ``Content-Type``
-    ``application/json; charset=UTF-8``
-
-    This is a lie; there is no request body.
-  ``client_type``
-    Example: ``TOLINO_VISION_3``
-  ``client_version``
-    Example: ``14.1.0``
+  See `bosh v1 header set`_
 
 
 Response
index 187a71f662271dee52c8e5d6e6152f01aa48c0b0..acfedf08c75be4c9f197b2ecc58d55f698977d04 100644 (file)
@@ -10,6 +10,16 @@ GET Parameters
   ``responseStatus=204``
     Always there
 
+Headers
+  ``User-Agent``
+    ``Dalvik/1.6.0 (Linux; U; Android 4.4.2; tolino Build/KOT49H)``
+  ``Host``
+    ``bosh.pageplace.de``
+  ``Connection``
+    ``Keep-Alive``
+  ``Accept-Encoding``
+    ``gzip``
+
 
 Response
 ========
index 088d583423b157597c0012af53ad3dc7dc15e1d7..8a7d009ea1f80df50fb21ae59414a4ec1cf65de5 100644 (file)
@@ -12,28 +12,7 @@ Part of the `sync process`_.
 Request
 =======
 Header
-  ``t_auth_token``
-    OAuth token obtained from `POST https://thalia.de/auth/oauth2/token`_.
-
-    Example: ``eyJhbGciOiJSUzI1NiJ9.eyJhdWRpZW5jZSI6InRyZWFkZXJ2aXNpb24zIiw...``
-  ``Accept``
-    Example: ``application/json; charset=UTF-8``
-  ``m_id``
-    FIXME: Maybe reseller ID?
-
-    Example: ``3``
-  ``hardware_id``
-    Seems to be the same as the ``xxx`` value in the URL.
-
-    Example: ``665fc389ef4e47258c5db9fa7821bd19``
-  ``Content-Type``
-    ``application/json; charset=UTF-8``
-
-    This is a lie; there is no request body.
-  ``client_type``
-    Example: ``TOLINO_VISION_3``
-  ``client_version``
-    Example: ``14.1.0``
+  See `bosh v1 header set`_
 GET parameters
   ``count``
     Number of recommendations to return
index 64097f1ebfe2f29f297b0b3892077c7e1735e10e..b3aec6edb5fc4369d434ef710c8e2f152866f708 100644 (file)
@@ -9,6 +9,9 @@ Part of the `Sync process`_.
 Request
 =======
 Header
+  Similar to `bosh v1 header set`_, but not exactly the same.
+  Uses ``reseller_id`` instead of ``m_id`` and does not send the ``client_version``.
+
   ``t_auth_token``
     OAuth token obtained from `POST https://thalia.de/auth/oauth2/token`_.
 
index 0fe115513dd7414141ceefa59d10807f54e77cab..31c67a070e942ab90422893f2a127c0549d2086c 100644 (file)
@@ -9,10 +9,15 @@ Step 1 of the `upload process`_.
 Request
 =======
 Header
-  FIXME: Headers
+  Nearly identical to the `bosh v1 header set`_, but not exactly the same.
+  No ``client_type``, no ``client_version``.
 
   ``Content-Type``
     ``multipart/form-data; boundary="Boundary1612163626238"``
+  ``Content-Transfer-Encoding``
+    ``binary``
+  ``Content-Length``
+    Depending on the request body.
 
 Request body
   Control data
index 2aaae295e4128cd1b5279e4c52c0423ac8ebee82..4bf9e4841610813bfa70e54383a7106a1e90757b 100644 (file)
@@ -16,26 +16,7 @@ Request
 No body in the request, despite the ``Content-Type`` header.
 
 Header
-  ``t_auth_token``
-    OAuth token obtained from `POST https://thalia.de/auth/oauth2/token`_.
-
-    Example: ``eyJhbGciOiJSUzI1NiJ9.eyJhdWRpZW5jZSI6InRyZWFkZXJ2aXNpb24zIiw...``
-  ``Accept``
-    ``application/json; charset=UTF-8``
-  ``m_id``
-    FIXME: Maybe reseller ID?
-
-    Example: ``3``
-  ``hardware_id``
-    Seems to be the same as the ``xxx`` value in the URL.
-
-    Example: ``665fc389ef4e47258c5db9fa7821bd19``
-  ``Content-Type``
-    ``application/json; charset=UTF-8``
-  ``client_type``
-    Example: ``TOLINO_VISION_3``
-  ``client_version``
-    Example: ``14.1.0``
+  See `bosh v1 header set`_.
 
 
 Response
index aacb47b58d37a2d987d823b1848bc9d5b6cdc90a..d1e4ce96a5483ecf57074cab0148a69d8bde2acb 100644 (file)
@@ -13,37 +13,7 @@ This is only called when the user has family member data
 Request
 =======
 Header
-  ``Authorization``
-    OAuth token obtained from `POST https://thalia.de/auth/oauth2/token`_.
-
-    Example: ``Bearer eyJhbGciOiJSUzI1NiJ9.eyJhdWRpZW5jZSI6InRyZWFkZXJ2aXNpb24zIiw...``
-  ``Accept``
-    Example: ``application/json; charset=UTF-8``
-  ``Accept-Encoding``
-    ``gzip``
-  ``m_id``
-    FIXME: Maybe reseller ID?
-
-    Example: ``3``
-  ``Hardware-Id``
-    Example: ``665fc389ef4e47258c5db9fa7821bd19``
-  ``Content-Type``
-    ``application/json; charset=UTF-8``
-
-    This is a lie; there is no request body.
-  ``client_type``
-    Example: ``TOLINO_VISION_3``
-  ``client_version``
-    Example: ``14.1.0``
-  ``Reseller-Id``
-    Example: ``3``
-  ``Cookie``
-    Multiple times:
-
-    -  ``OAUTH-JSESSIONID=3EFAEC6B69D811252C75861880C338AB.15acdb90; Path=/; Secure; HttpOnly``
-    - ``JSESSIONID=C0D8A077F6D2E13251ECDCD60FE6D18A``
-  ``Cookie2``
-    Example: ``$Version=1``
+  See `family v1 header set`_.
 
 No request body.
 
index 6bc59264bcda1f66bc3c2ef2cdda717ac02886ae..85e6bfca77708552d561c6bef323fa5030e19f0a 100644 (file)
@@ -10,37 +10,7 @@ Part of the `sync process`_.
 Request
 =======
 Header
-  ``Authorization``
-    OAuth token obtained from `POST https://thalia.de/auth/oauth2/token`_.
-
-    Example: ``Bearer eyJhbGciOiJSUzI1NiJ9.eyJhdWRpZW5jZSI6InRyZWFkZXJ2aXNpb24zIiw...``
-  ``Accept``
-    Example: ``application/json; charset=UTF-8``
-  ``Accept-Encoding``
-    ``gzip``
-  ``m_id``
-    FIXME: Maybe reseller ID?
-
-    Example: ``3``
-  ``Hardware-Id``
-    Example: ``665fc389ef4e47258c5db9fa7821bd19``
-  ``Content-Type``
-    ``application/json; charset=UTF-8``
-
-    This is a lie; there is no request body.
-  ``client_type``
-    Example: ``TOLINO_VISION_3``
-  ``client_version``
-    Example: ``14.1.0``
-  ``Reseller-Id``
-    Example: ``3``
-  ``Cookie``
-    Multiple times:
-
-    -  ``OAUTH-JSESSIONID=3EFAEC6B69D811252C75861880C338AB.15acdb90; Path=/; Secure; HttpOnly``
-    - ``JSESSIONID=C0D8A077F6D2E13251ECDCD60FE6D18A``
-  ``Cookie2``
-    Example: ``$Version=1``
+  See `family v1 header set`_.
 
 No request body.
 
index 0338b2164e0734e8d9c639585702c983b15c4cca..b02992a8a2b44ceeda4227c20b1a9a8c79740454 100644 (file)
@@ -15,37 +15,7 @@ This is only called when the user has family member data
 Request
 =======
 Header
-  ``Authorization``
-    OAuth token obtained from `POST https://thalia.de/auth/oauth2/token`_.
-
-    Example: ``Bearer eyJhbGciOiJSUzI1NiJ9.eyJhdWRpZW5jZSI6InRyZWFkZXJ2aXNpb24zIiw...``
-  ``Accept``
-    Example: ``application/json; charset=UTF-8``
-  ``Accept-Encoding``
-    ``gzip``
-  ``m_id``
-    FIXME: Maybe reseller ID?
-
-    Example: ``3``
-  ``Hardware-Id``
-    Example: ``665fc389ef4e47258c5db9fa7821bd19``
-  ``Content-Type``
-    ``application/json; charset=UTF-8``
-
-    This is a lie; there is no request body.
-  ``client_type``
-    Example: ``TOLINO_VISION_3``
-  ``client_version``
-    Example: ``14.1.0``
-  ``Reseller-Id``
-    Example: ``3``
-  ``Cookie``
-    Multiple times:
-
-    -  ``OAUTH-JSESSIONID=3EFAEC6B69D811252C75861880C338AB.15acdb90; Path=/; Secure; HttpOnly``
-    - ``JSESSIONID=C0D8A077F6D2E13251ECDCD60FE6D18A``
-  ``Cookie2``
-    Example: ``$Version=1``
+  See `family v1 header set`_.
 
 No request body.