supernote-cloud-api
v1.0.13
Published
Access SuperNote Cloud Storage
Downloads
16
Readme
Supernote Cloud Storage API
(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
| Param | Type | Description | | --- | --- | --- | | email | string | User e-mail address | | password | string | User password |
fileList(token, directoryId) ⇒ Promise.<FileInfo>
Kind: global function
Returns: Promise.<FileInfo> - List of files and folders.
| Param | Type | Description | | --- | --- | --- | | token | string | Access token from login() | | directoryId | string | Identifier of folder to list (default is root folder) |
fileUrl(token, id) ⇒ Promise.<string>
Kind: global function
Returns: Promise.<string> - URL of file
| Param | Type | Description | | --- | --- | --- | | token | string | Access token from login() | | id | string | Identifier of file |
syncFiles(token, localPath) ⇒ Promise.<void>
Kind: global function
| Param | Type | Description | | --- | --- | --- | | token | string | Access token from login() | | localPath | string | Local file path to sync to |