CatboxClient

CatboxClient

A client for interfacing with the Catbox api

Constructor

new CatboxClient(userHashopt)

Creates an instance of CatboxClient.
Parameters:
Name Type Attributes Default Description
userHash string <optional>
null The userhash to use for operations
Source:

Methods

(async) deleteFiles(files) → {boolean}

Deletes files. NOTE: This requires a userhash to be specified!
Parameters:
Name Type Description
files Array.<string> The file names to delete
Source:

(async) fileUpload(path) → {Promise.<string>}

Uploads a file
Parameters:
Name Type Description
path string The path of the file to upload
Source:

(async) urlUpload(url) → {Promise.<string>}

Uploads a file from a URL
Parameters:
Name Type Description
url string The url of the file to upload
Source: