2.2.0 • Published 3 months ago
oneflow-sdk-js v2.2.0
oneflow-sdk-js
Installation
npm install oneflow-sdk-js
Basic usage
const OneflowClient = require('oneflow-sdk-js');
const client = new OneflowClient(
process.env.OFS_URL || 'https://pro-api.oneflowcloud.com/api',
process.env.OFS_TOKEN,
process.env.OFS_SECRET
);
// ...
const destinationName = 'oneflow';
const orderData = { sourceOrderId: 'aUniqueId' };
const order = client.createOrder(destinationName, orderData);
// ... instructions to complete the order data ...
const result = await client.submitOrder();
If a unique routing rule path needs to be specified, it can be done using:
const result = await client.submitOrder({ routingRule: 'your routing rule key here' });
The routing rule key is a unique string of numbers and letters
For more detailed examples checkout the examples folder.
You can find more information about the required fields and the order structure in https://hpsiteflow.com
2.2.0
3 months ago
2.1.9
2 years ago
2.1.8
2 years ago
2.1.6
2 years ago
2.1.5
2 years ago
2.1.7
2 years ago
2.1.4
3 years ago
2.1.2
4 years ago
2.1.3
4 years ago
2.1.1
4 years ago
2.1.0
4 years ago
2.0.18
4 years ago
2.0.17
4 years ago
2.0.16
4 years ago
2.0.15
4 years ago
2.0.14
5 years ago
2.0.13
6 years ago
2.0.12
6 years ago
2.0.11
6 years ago
2.0.10
6 years ago
2.0.9
7 years ago
2.0.8
7 years ago
2.0.7
7 years ago
2.0.6
7 years ago
2.0.5
8 years ago
2.0.4
8 years ago
2.0.3
8 years ago
2.0.2
8 years ago
2.0.1
8 years ago
2.0.0
8 years ago
1.0.11
10 years ago
1.0.10
10 years ago
1.0.9
10 years ago
1.0.8
10 years ago