Ordering API SDK

Ordering SDK is a easier way to connect you applications with the API by
simplifying the structure in methods.

Getting started

Instalation

Ordering SDK can be easy intalll by NPM using:

npm install github:sergioaok/ordering-api-sdk

Including on project

//import ordering SDK
import {Ordering} from 'ordering-api-sdk'



//instantiating ordering
const ordering = new Ordering({
  // url: 'http://localhost:8080',
  // project: 'development'
})

Dataset Properties

Ordering allows a number of properties on its dataset. These are used to setup API url, projects, tokens and more. It can be configured at the moment of instantiating it, and some also by methods.

Name

Type

Method

Default

url

string

none

'https://apiv4.ordering.co'

version

string

none

'v400'

project

string

none

'demo'

language

string

none

'en'

accessToken

string

setAccessToken (accessToken)

null

apiKey

string

setApiKey (apiKey)

null