File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ and folders ("collections"). The hash indicates the full current state to manage
21
21
## Usage
22
22
23
23
To explore files in the cloud, you need to first register your api and persist
24
- the token. Then you can use ` listFiles ` to explore entries of different file
24
+ the token. Then you can use ` listItems ` to explore entries of different file
25
25
collections.
26
26
27
27
``` ts
@@ -31,7 +31,7 @@ const code = "..."; // eight letter code from https://my.remarkable.com/device/d
31
31
const token = await register (code );
32
32
// persist token so you don't have to register again
33
33
const api = await remarkable (token );
34
- const fileEntries = await api .listFiles ();
34
+ const fileEntries = await api .listItems ();
35
35
```
36
36
37
37
To upload an epub or pdf, simply call upload with the appropriate name and buffer.
@@ -53,7 +53,7 @@ Using these apis is a little riskier since they can potentially result in data l
53
53
// upload with custom line height not avilable through reMarkable
54
54
await api .putEpub (" name" , buffer , { lineHeight: 180 })
55
55
56
- // fetch an uploaded pdf, using the hash (from listFiles )
56
+ // fetch an uploaded pdf, using the hash (from listItems )
57
57
const buffer = await api .getEpub (hash )
58
58
```
59
59
You can’t perform that action at this time.
0 commit comments