Code Monkey home page Code Monkey logo

maxdotng's Introduction

maxdotng

NPM Version Build Status

A NodeJS Wrapper for MaxNG

Overview

This project provides an easy-to-use object-oriented API to access endpoints delineated at https://maxv1.docs.apiary.io/

Installation

Install from the NPM Registry

  npm i --save maxng-nodejs

Usage

let MaxNg = require('maxng-nodejs')

const APIKEY = 'pk_1IkXmSWOlE4y9Inhgyd6g5f2R7'
const environment = process.env.NODE_ENV
const isProduction = (environment === 'production')

const maxdotng = new MaxNg(APIKEY, isProduction);

let response = {body:{}};
const date_time = new Date('2019-12-30')

try {
  response = await maxdotng.getPickUpWindow({
    pickup_datetime: date_time
  });
}catch(err){
    console.error(err);
}

API Resources

  • maxdotng.getDeliveryRequestStatus()
  • maxdotng.getOrderPickupWindows()
  • maxdotng.scheduleDeliveryRequest()
  • maxdotng.getDeliveryRequest()
  • maxdotng.getPickUpWindow()

License

MIT

Contributing

You are welcome to contribute to this project. Just before sending us a PR, do the following below:

Firstly, clone the project

git clone https://www.github.com/stitchng/maxdotng

Then, lint the code to conform to our code style

npm run lint

Finally, add tests to the test folder to test your code and run tests locally

npm run test

Credits

Contributing

See the CONTRIBUTING.md file for info

maxdotng's People

Contributors

isocroft avatar stitchng avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.