rmapy icon indicating copy to clipboard operation
rmapy copied to clipboard

Changed authentication url, now matching rmapi authentication

Open maximiliankir opened this issue 1 year ago • 6 comments

Fixes authentication error. Before this fix the remarkable cloud servers responded with "500: internal server error", when calling register_device(code).

maximiliankir avatar Jan 07 '23 10:01 maximiliankir

Can confirm that this resolves rmapy.exceptions.AuthError: Can't register device

If need be, you can monkeypatch this fix into a version of rmapy pulled from pip using:

import rmapy.const
rmapy.const.AUTH_BASE_URL = "https://webapp-prod.cloud.remarkable.engineering"
rmapy.const.DEVICE_TOKEN_URL = rmapy.const.AUTH_BASE_URL + "/token/json/2/device/new"
rmapy.const.USER_TOKEN_URL = rmapy.const.AUTH_BASE_URL + "/token/json/2/user/new"

@subutux please merge! :)

jwoglom avatar Apr 06 '23 04:04 jwoglom

Thank you so much for theses URL that unblocked me :)

MaxenceG2M avatar Sep 05 '23 21:09 MaxenceG2M

This one did not work for me

image

kurt-rhee avatar Oct 28 '23 15:10 kurt-rhee

@kurt-rhee I ended up using a combination of rmapy and the rmapi binary to get this working: https://github.com/jwoglom/remarkable-substack/blob/main/remarkable.py

jwoglom avatar Oct 28 '23 16:10 jwoglom

Wow that is amazing. Your repository is actually what I want to do as well (though I have much less experience than you writing software)

Would you be willing to teach me how to use it? I could write some documentation and submit as a PR if you would like.

kurt-rhee avatar Oct 28 '23 16:10 kurt-rhee

@kurt-rhee if you're curious in how to use remarkable-substack I just added a readme file to that repo with the setup instructions. If you just want to build something to hit the API, you should be able to take the remarkable.py script as a guide -- just make sure you have the rmapi binary installed

jwoglom avatar Oct 28 '23 16:10 jwoglom