t1p-mulesoftservices
v1.9.12
Published
Provide Mulesoft Service for The 1 Projects
Downloads
23
Readme
T1-MulesoftService
Install via npm dependencies
// in package.json
...
dependencies: {
...
"t1-mulesoftservice": "git+https://gitlab+deploy-token-78184:[email protected]/t1p/t1-mulesoftservice.git#releases",
...
},
Mulesoft Services Setup
To setup MulesoftServices, use createServices(config) function.
Config
- apiVersion - required, version of api to Services provided by Mulesoft
- clientID - required, client id to Services provided by Mulesoft
- clientSecret - required, client secret id to Services provided by Mulesoft
- endpoint - optional, Mulesoft Services Endpoint provided by Mulesoft.
For security reasons, all access keys are required to in order to use the services.
// ES5-JavaScript
const { createServices } = require("t1-mulesoftservices");
const MulesoftServices = createServices({
apiVersion: "version of api",
clientID: "client id",
clientSecret: "client secret id",
endpoint: "sample.endpoint.com",
});
// ES6-JavaScript, TypeScript
import { createServices } from "t1-mulesoftservices";
const MulesoftServices = createServices({
apiVersion: "version of api",
clientID: "client id",
clientSecret: "client secret id",
endpoint: "sample.endpoint.com",
});