About the nShift category

Put topics about this connector package here.
Always check the ‘How to use the Alumio connector packages’ topic.

Extra information

System documentation nShift v1:
System documentation nShift v2:

Connector package documentation

nShift API Version 1

Setting up HTTP Client for NShift

Steps

  1. In Alumio Dashboard, go to Clients > HTTP Clients. Create a new HTTP Client and select nShift V1 HTTP Client as the prototype of the HTTP Client.
  2. Fill in the Base URI.
  3. Save and Continue.

Subscribing to Entities from NShift

Steps

  1. Go to Connections → Incoming and create a new incoming configuration and select NShift V1 Subscriber as the subscriber.
  2. Select the Command you want to subscribe from NShift.
  3. Add “Key” and “Actor” before Subscribing,
    Recommended to create Environment Variable as nShift_key and nShift_actor.
  • Create Environment Variable go to Settings > Environment Variables > Create new Environment Variable > Insert Name & Value (Name as nShift_key/nShift_actor) > Save.
  1. Add any “Data” and “Options” needed to subscribe to the entity (optional).
  2. You can optionally add a transformer to transform the request parameters into something you need.
  3. Select the NShift HTTP Client to use.

General Concept

We follow NShift documentation on building this connector so you can easily use the connector based on NShift API Reference.

Command
It’s the Command you want to subscribe from NShift. Please refer to the entities in Management APIs from the NShift API Reference page.

Key
It’s the Key for Authentication of nShift.

Actor
It’s the Actor for Authentication of nShift.

Data & Options
These are the parameters you can provide to get the needed entity based on NShift API Reference. Please look at the example below when subscribing to “Get All shopments from a Stacks’

That’s why we need to define StackCSID , StartIndex, Count, SortField, and SortDirection properties.

Input Transformer
Any transformers set here will be executed after the Request Parameters are loaded. So, you basically can add any transformer to provide and transform the request parameters into anything you need either as path parameters and/or as query parameters of an entity.

HTTP Client
It’s the HTTP Client configuration or prototype you will use to access NShift.

Publishing Entity to NShift

Steps

  1. Go to Connections → Outgoing, create a new outgoing configuration, and select NShift Publisher as the publisher.
  2. Select the action that you want the publisher to do with the data.
  3. Select the NShift entity you want the data to be published.
  4. Select the HTTP Client to use.

General Concept

Like the subscriber, the publisher has similar methods on how to use it. The difference is the payload that will be submitted by the publisher originating from the data (from routes, from transformers in outgoing configuration).

Entity
We support publishing to most NShift Command. Please refer to the entities in Management APIs from the NShift API Reference page. Based on the documentation, some Command may need one or more path parameters.

For Command that require an object as the request payload, please look at the example below. For example, we want to Create a new Stack. Please select “Create a new Stack” as the entity of the publisher.

Heres an Example of Entity Data for Publisher
Same as Example Above we only need to insert Entity and Client as the Data is already carried from Route.

You can put the payload object as actor, key, data, and options. Other than 4 of this key in the payload will not be processed, as for the command is already inputted in Publisher.

HTTP Client
It’s the HTTP Client configuration or prototype you will use to access NShift.

nShift API Version 2