1.0.8 • Published 6 years ago

priceplan v1.0.8

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

PricePlan API

This is a simple Promise based module to work with PricePlan API

Usage

Available methods:

Example

const PP = require('priceplan');
let pp = new PP('https://yourdomain.priceplan.pro/api/','userApiKey','userPassword');
pp.proxy = 'http://127.0.0.1:8888';	//Enables proxy
pp.debug = true; //Enables console.info

//Get Users
pp.get(`clients/`)
.then(results=>{
    ...
})

//Create User
let user = {
    name:"Client #16",
    type:2,
    signed_values:{id:"someInternalId"}
}
pp.post(`clients/`,user)
.then(results=>{
    ...
})

//Delete User
pp.delete(`clients/1`)
.then(results=>{
    ...
})
1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago