hzulla / tolino-python

Access to tolino cloud with Python 3
GNU Lesser General Public License v2.1
78 stars 35 forks source link

First step towards adding of bücher.de #6

Open baderas opened 9 years ago

baderas commented 9 years ago

Hi,

i want to add bücher.de as partner, but there seems to be some small problem. The links should be alright, but the login won't work, the cookie is not passed (error around line 255) and you only see login screen without any error and of course without being logged in. I could not manage to get it to work, as I said the links should be alright, but somehow bücher.de rejects the login POST request - maybe some kind of randomly generated token missing?

I hope you can help. Account can be created for free.

aquisx commented 7 years ago

The script must first GET the Login Page. "GET", "/go/my_dry/my_login/receiver_object/my_login/ And then POST "POST", "/go/my_dry/my_login/receiver_object/my_login/" &"form_send=1&form%5Blogin%5D=" & $mail & "&form%5Bpassword%5D=" & $pass ) After that you must GET the following "GET", "/oauth2/authorize?client_id=dte_ereader_app_01&response_type=code&scope=ebook_library&redirect_uri=https%3A%2F%2Fwebreader.mytolino.com%2Flibrary%2F&x_buecherde.skin_id=de_dte_tolino") Now Buecher.de redirects you to https://webreader.mytolino.com/library/?code=CODE

aquisx commented 7 years ago

At the moment i fail the upload at my AutoIt Script with the header: {"ResponseInfo":{"serviceName":"generic[*]","responseStatus":-113,"message":"m_id-Header is missing.","requestId":"REQUEST ID"}}

hzulla commented 6 years ago

@aquisx - Thanks so far. Were you able to get it to work later?