This Library attempts to unify the API of different delivery providers in India.
Installation
npm install angarum
Instructions
To add a new partner, use
./generate partner_name
To generate a new partner as partner_name.js . Preferably use lower case letters and underscore.
Usage
var ang = ; //To access a partner (case insensitive), we use:var partner = ang; //To Create a new order, we use:var newOrder = {}; //Checkout Schemas/order_schema.js for information on what to pass to ang.Order.partner //Similarly, for tracking url, tracking status and cancellation respectively,var track = ;var tracking_status = "awb_number" : "some_awb_no:";var cancel = {};partner;partner;partner; //See their schemas inside Schemas/ for more information