@shreekantp/nationalservicealliance
Node js library
Last updated 4 years ago by shreekantp .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @shreekantp/nationalservicealliance 
SYNC missed versions from official npm registry.

Installation

npm install nationalservicealliance

API Overview

Every resource method is accessed via nationalservicealliance instance:

var nsa = require('nationalservicealliance')({token});
// nsa.{ METHOD_NAME }

Note : token is an optional value passed with nsa instance.

Every method accepts a callback as the last argument:

  nsa.updateUser(22,{
                 "firstName": "John",
                 "lastName": "Doe",
                 "email": "john.doe@test.com"
             },function(data,status){
          data; // json body returned by API
          status; // status code returned by API
         })

Available resources & methods

Where you see params it is a JSON object, e.g. { "oldPassword": "old_password" }

Authorizations API

  • login(username,password)
  • refreshLogin()
  • logout()

Users API

  • listUsers(userID)
  • updateUser(userID,[params])
  • updateUserPassword(userID,[params])

Availability API

  • listAvailability(qryStringAvailaibility)
  • listAvailabilityDefaults()
  • addAvailability([params])
  • updateAvailabilityByDate(date,[params])
  • removeAvailabilityByDate(date)
  • updateAvailabilityDefaults([params])

Dispatches API

  • getDispatches(queryStringListDispatches)
  • getDispatchesByDispatchNumber(dispatchNumber)
  • updateDispatchesByDispatchNumber(dispatchNumber, [params])
  • updateDispatchesSchedules(dispatchNumber, [params])
  • updateDispatchesCompletions(dispatchNumber, [params])
  • getDispatchesAttachments(dispatchNumber)
  • updateDispatchesAttachments(dispatchNumber,[params])

Payments API

  • listPayments(qryStringPayments)
  • listPaymentsByBatchId(batchID)
  • listPaymentsByCallId(callID)

Current Tags

  • 0.0.1                                ...           latest (4 years ago)

1 Versions

  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 2
Dependencies (5)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |