files

Methods

(inner) file(id) → {Promise}

Source:
See:
Retrieve a file object. If link_expires_at is passed, this will update the link and any embedded references to it.
Example
const { meta, data } = await pnut.file(69);
Parameters:
Name Type Description
id string | Number File id
Returns:
Type
Promise

(inner) fileList(paramsopt) → {Promise}

Source:
See:
Retrieve a list of files created by the authenticated user.
Example
const { meta, data } = await pnut.fileList();
Parameters:
Name Type Attributes Description
params Object <optional>
Additional URI parameters
Returns:
Type
Promise

(inner) files(ids) → {Promise}

Source:
See:
Retrieve a list of specified file objects. Only returns the first 200 found.
Example
const { meta, data } = await pnut.files(69, 71);
Parameters:
Name Type Description
ids string | Number File ids
Returns:
Type
Promise