2.1.9 • Published 11 months ago

oneflow-sdk-js v2.1.9

Weekly downloads
211
License
MIT
Repository
-
Last release
11 months ago

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.1.9

11 months ago

2.1.8

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

2.1.7

1 year ago

2.1.4

2 years ago

2.1.2

2 years ago

2.1.3

2 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.18

3 years ago

2.0.17

3 years ago

2.0.16

3 years ago

2.0.15

3 years ago

2.0.14

4 years ago

2.0.13

5 years ago

2.0.12

5 years ago

2.0.11

5 years ago

2.0.10

5 years ago

2.0.9

5 years ago

2.0.8

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.11

8 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago