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.

NameTypeMethodDefault
urlstringnone'https://apiv4.ordering.co'
versionstringnone'v400'
projectstringnone'demo'
languagestringnone'en'
accessTokenstringsetAccessToken (accessToken)null
apiKeystringsetApiKey (apiKey)null