Abstraction for the ecoDMS 18.09 (apu) API.
- Parameters:
config
—object
origin
–string
username
–string
password
–string
port
–number|string
(optional, default:8180
)
- Returns:
Promise<string>
- Returns:
Promise<object[]>
- Returns:
Promise<string[]>
- Returns:
Promise<string[]>
- Returns:
Promise<object[]>
- Returns:
Promise<object[]>
- Parameters:
id
—number|string
- Returns:
Promise<object>
- Parameters:
id
—number|string
- Returns:
Promise<string>
- Parameters:
id
—number|string
version
—number|string
- Returns:
Promise<string>
- Parameters:
id
—number|string
- Returns:
Promise<boolean>
- Parameters:
id
—number|string
- Returns:
Promise<boolean>
- Parameters:
id
—number|string
- Returns:
Promise<number[]>
- Parameters:
id
—number|string
linkIds
—number[]|string[]
- Returns:
Promise<number[]>
- Parameters:
id
—number|string
linkIds
—number[]|string[]
- Returns:
Promise<boolean>
- Parameters:
id
—number|string
- Returns:
Promise<object[]>
- Parameters:
id
—number|string
page
—number|string
height
—number|string
- Returns:
Promise<string>
- Returns:
Promise<number[]>
- Parameters:
filepath
—string
versionControlled
—boolean
(optional, default:false
)
- Returns:
Promise<number>
- Parameters:
filepath
—string
pdfpath
—string
versionControlled
—boolean
(optional, default:false
)
- Returns:
Promise<number>
- Parameters:
id
—number|string
filepath
—string
fixed
—boolean
(optional, default:false
)
- Returns:
Promise<boolean>
- Parameters:
id
—number|string
filepath
—string
pdfpath
—string
fixed
—boolean
(optional, default:false
)
- Returns:
Promise<boolean>
- Parameters:
docInfoObject
—object
- Returns:
Promise<number>
- Parameters:
folderObject
—object
- Returns:
Promise<number>
- Parameters:
folderObject
—object
parentFolderId
—number|string
- Returns:
Promise<number>
const EcoDms = require('ecodms-node');
const api = new EcoDms({
origin: 'http://example-ecodms.com',
username: 'user',
password: 'pass'
});
api.test()
.then((res) => console.log('API works'))
.catch((err) => console.log('API does not work'));
// Do anything you want from here