1.0.13 • Published 1 year ago

supernote-cloud-api v1.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Supernote Cloud Storage API

Build and test badge npm version badge license badge

(Unofficial) API for accessing the cloud storage for Supernote tablets. This library was created by observing the network calls from the Supernote web app and may stop working if Supernote modifies the cloud API.

Modules

Functions

supernote-cloud-api

login(email, password) ⇒ Promise.<string>

Kind: global function
Returns: Promise.<string> - Access token to access storage

ParamTypeDescription
emailstringUser e-mail address
passwordstringUser password

fileList(token, directoryId) ⇒ Promise.<FileInfo>

Kind: global function
Returns: Promise.<FileInfo> - List of files and folders.

ParamTypeDescription
tokenstringAccess token from login()
directoryIdstringIdentifier of folder to list (default is root folder)

fileUrl(token, id) ⇒ Promise.<string>

Kind: global function
Returns: Promise.<string> - URL of file

ParamTypeDescription
tokenstringAccess token from login()
idstringIdentifier of file

syncFiles(token, localPath) ⇒ Promise.<void>

Kind: global function

ParamTypeDescription
tokenstringAccess token from login()
localPathstringLocal file path to sync to
1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

2 years ago