After getting a device token with the register method,
persist it and create api instances using remarkable.
Outside of registration, all relevant methods are in
RemarkableApi.
Example
A simple fetch
import { register, remarkable } from"rmapi-js";
constcode = "..."// eight letter code from https://my.remarkable.com/device/browser/connect consttoken = awaitregister(code) // persist token constapi = awaitremarkable(token); constrootEntries = awaitapi.getEntries(); for (constentryofrootEntries) { constchildren = awaitapi.getEntries(entry.hash); for (const { hash, documentId } ofchildren) { if (documentId.endsWith(".metadata")) { constmeta = api.getMetadata(hash); // get metadata for entry console.log(meta); } } }
Create and interact with reMarkable cloud.
After getting a device token with the
register
method, persist it and create api instances usingremarkable
. Outside of registration, all relevant methods are inRemarkableApi
.Example
A simple fetch
Example
A simple upload