Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Commit 5eafff7

Browse files
authored
Merge pull request #10 from michaelmior/auth-fix
Fix API endpoint URLs
2 parents 49063f5 + d33f463 commit 5eafff7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/RemarkableAPI.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function register($code)
7373
$this->logger->info('Registering device');
7474
$response = $this->client->requestJSON(
7575
'POST',
76-
self::AUTH_API . '/token/device/new',
76+
self::AUTH_API . '/token/json/2/device/new',
7777
$data
7878
);
7979

@@ -106,7 +106,7 @@ public function refreshToken($token)
106106
$this->logger->info('Refreshing auth token');
107107
$response = $this->client->request(
108108
'POST',
109-
self::AUTH_API . '/token/user/new'
109+
self::AUTH_API . '/token/json/2/user/new'
110110
);
111111

112112
$token = (string)$response->getBody();
@@ -355,4 +355,4 @@ protected function discoverStorage()
355355
$this->STORAGE_API = 'https://' . $data['Host'];
356356
}
357357

358-
}
358+
}

0 commit comments

Comments
 (0)