From ad930cb9cc9b3d7f67f1f49691a262c7a1dc8808 Mon Sep 17 00:00:00 2001 From: Andreas Bader Date: Wed, 2 Sep 2015 17:27:51 +0200 Subject: [PATCH] =?UTF-8?q?First=20step=20towards=20adding=20of=20b=C3=BCc?= =?UTF-8?q?her.de?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tolinocloud.py | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/tolinocloud.py b/tolinocloud.py index 00ea3d0..f0b4c31 100644 --- a/tolinocloud.py +++ b/tolinocloud.py @@ -191,7 +191,36 @@ def _hardware_id(): 'delete_url' : 'https://bosh.pageplace.de/bosh/rest/deletecontent', 'inventory_url' : 'https://bosh.pageplace.de/bosh/rest/inventory/delta', 'downloadinfo_url' : 'https://bosh.pageplace.de/bosh/rest//cloud/downloadinfo/{}/{}/type/external-download' - } + }, + 30: { + # Bücher.de' + 'client_id' : 'dte_ereader_01', + 'scope' : 'ebook_library', + 'signup_url' : 'https://www.buecher.de/go/my_my/my_newRegistration/', + 'profile_url' : 'https://www.buecher.de/go/my_my/my_data/', + 'token_url' : 'https://www.buecher.de/oauth2/token', + 'revoke_url' : 'https://www.buecher.de/oauth2/revoke', + 'auth_url' : 'https://www.buecher.de/oauth2/authorize', + 'login_url' : 'https://www.buecher.de/go/my_my/my_login/receiver_object/my_login/', + 'login_form' : { + 'username' : 'form[login]', + 'password' : 'form[password]', + 'extra' : { + 'form_send' : 1, + 'form[remember_email][]' : "yes" + } + }, + 'login_cookie' : 'shop[email]', + 'reader_url' : 'https://webreader.buecher.de/library/library.html#!/library', + 'register_url' : 'https://bosh.pageplace.de/bosh/rest/registerhw', + 'devices_url' : 'https://bosh.pageplace.de/bosh/rest/handshake/devices/list', + 'unregister_url' : 'https://bosh.pageplace.de/bosh/rest/handshake/devices/delete', + 'upload_url' : 'https://bosh.pageplace.de/bosh/rest/upload', + 'delete_url' : 'https://bosh.pageplace.de/bosh/rest/deletecontent', + 'inventory_url' : 'https://bosh.pageplace.de/bosh/rest/inventory/delta', + 'downloadinfo_url' : 'https://bosh.pageplace.de/bosh/rest//cloud/downloadinfo/{}/{}/type/external-download' + }, + } def __init__(self, partner_id):