Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Changed authentication url, now matching rmapi authentication #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maximiliankir
Copy link

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

@maximiliankir maximiliankir deleted the fix-auth branch January 7, 2023 11:08
@maximiliankir maximiliankir restored the fix-auth branch January 7, 2023 11:08
@maximiliankir maximiliankir reopened this Jan 7, 2023
@jwoglom
Copy link

jwoglom commented Apr 6, 2023

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! :)

@MaxenceG2M
Copy link

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

@kurt-rhee
Copy link

This one did not work for me

image

@jwoglom
Copy link

jwoglom commented Oct 28, 2023

@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

@kurt-rhee
Copy link

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.

@jwoglom
Copy link

jwoglom commented Oct 28, 2023

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants