mirror of
https://github.com/subutux/rmapy.git
synced 2025-12-08 22:53:25 +00:00
[docs] update registration URL, see https://github.com/subutux/rmapy/issues/28 (#33)
This commit is contained in:
@@ -7,7 +7,7 @@ are re-used because we use the same storage location & format.
|
|||||||
If not, you'll need to register the client as a new device on `my remarkable`_.
|
If not, you'll need to register the client as a new device on `my remarkable`_.
|
||||||
|
|
||||||
|
|
||||||
.. _my remarkable: https://my.remarkable.com/connect/remarkable
|
.. _my remarkable: https://my.remarkable.com/device/desktop/connect
|
||||||
|
|
||||||
.. _rmapi: https://github.com/juruen/rmapi
|
.. _rmapi: https://github.com/juruen/rmapi
|
||||||
|
|
||||||
@@ -30,6 +30,7 @@ and use the code you see on the webpage
|
|||||||
# This registers the client as a new device. The received device token is
|
# This registers the client as a new device. The received device token is
|
||||||
# stored in the users directory in the file ~/.rmapi, the same as with the
|
# stored in the users directory in the file ~/.rmapi, the same as with the
|
||||||
# go rmapi client.
|
# go rmapi client.
|
||||||
|
# Get a token at https://my.remarkable.com/device/desktop/connect.
|
||||||
rmapy.register_device("fkgzzklrs")
|
rmapy.register_device("fkgzzklrs")
|
||||||
# It's always a good idea to renew the user token every time you start
|
# It's always a good idea to renew the user token every time you start
|
||||||
# a new session.
|
# a new session.
|
||||||
|
|||||||
@@ -95,12 +95,12 @@ class Client(object):
|
|||||||
"""Registers a device on the Remarkable Cloud.
|
"""Registers a device on the Remarkable Cloud.
|
||||||
|
|
||||||
This uses a unique code the user gets from
|
This uses a unique code the user gets from
|
||||||
https://my.remarkable.com/connect/remarkable to register a new device
|
https://my.remarkable.com/device/desktop/connect to register
|
||||||
or client to be able to execute api calls.
|
a new device or client to be able to execute api calls.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
code: A unique One time code the user can get
|
code: A unique One time code the user can get
|
||||||
at https://my.remarkable.com/connect/remarkable .
|
at https://my.remarkable.com/device/desktop/connect.
|
||||||
Returns:
|
Returns:
|
||||||
True
|
True
|
||||||
Raises:
|
Raises:
|
||||||
|
|||||||
Reference in New Issue
Block a user