1.3.47 • Published 26 days ago
mamori-ent-js-sdk v1.3.47
SDK for Mamori enterprise server and proxies
Installation
yarn add mamori-ent-js-sdk
yarn add ts-node
yarn add typescript
yarn add @types/node
yarn add @types/minimist
Usage
To run a script:
yarn ts-node <your script>
Example script: login and list available datasources
// allow for self-signed certificates
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0';
import { MamoriService,io_datasource } from 'mamori-ent-js-sdk';
let mamoriUrl = "https://localhost/" ;
let mamoriUser = "alice" ;
let mamoriPwd = "mirror" ;
let dm = new MamoriService(mamoriUrl);
async function display_datasources() {
let api = new MamoriService(mamoriUrl);
console.info("Connecting...");
let login = await api.login(mamoriUser, mamoriPwd);
console.info("Login successful for: ", login.fullname, ", session: ", login.session_id);
console.info("Fetching user datasources...");
let datasources = await io_datasource.Datasource.getAll(api);
console.info("User datasources: ", datasources);
}
display_datasources()
.catch(e => console.error("ERROR: ", e))
.finally(() => process.exit(0));
For more examples, see ./examples/
.
For several useful one-task scripts, see ./scripts/
.
Documentation
To generate, execute ./generate_docs.sh
and open ./docs/index.html
to view.
See mamori.io for further documentation.
Copyright (c) 2021 mamori.io
1.3.46
26 days ago
1.3.47
26 days ago
1.3.44
12 months ago
1.3.45
11 months ago
1.3.42
1 year ago
1.3.43
1 year ago
1.3.35
1 year ago
1.3.36
1 year ago
1.3.39
1 year ago
1.3.37
1 year ago
1.3.38
1 year ago
1.3.40
1 year ago
1.3.41
1 year ago
1.3.31
2 years ago
1.3.32
1 year ago
1.3.30
2 years ago
1.3.33
1 year ago
1.3.34
1 year ago
1.3.20
2 years ago
1.3.21
2 years ago
1.3.25
2 years ago
1.3.22
2 years ago
1.3.28
2 years ago
1.3.29
2 years ago
1.3.26
2 years ago
1.3.27
2 years ago
1.3.0
2 years ago
1.3.10
2 years ago
1.2.1
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.0
3 years ago