From 5c78598271a0198386058e2a7ef89419151cc371 Mon Sep 17 00:00:00 2001 From: Stijn Van Campenhout Date: Fri, 23 Jul 2021 10:34:17 +0200 Subject: [PATCH] fix: auth url. See #25 --- rmapy/const.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rmapy/const.py b/rmapy/const.py index 21ee01c..edfe403 100644 --- a/rmapy/const.py +++ b/rmapy/const.py @@ -1,7 +1,8 @@ RFC3339Nano = "%Y-%m-%dT%H:%M:%SZ" USER_AGENT = "rmapy" +AUTH_BASE_URL = "https://webapp-production-dot-remarkable-production.appspot.com" BASE_URL = "https://document-storage-production-dot-remarkable-production.appspot.com" # noqa -DEVICE_TOKEN_URL = "https://my.remarkable.com/token/json/2/device/new" -USER_TOKEN_URL = "https://my.remarkable.com/token/json/2/user/new" +DEVICE_TOKEN_URL = AUTH_BASE_URL + "/token/json/2/device/new" +USER_TOKEN_URL = AUTH_BASE_URL + "/token/json/2/user/new" DEVICE = "desktop-windows" SERVICE_MGR_URL = "https://service-manager-production-dot-remarkable-production.appspot.com" # noqa