1.0.1 • Published 6 years ago
simplepostapi v1.0.1
PostAPI
Postapi(name, host, token, timeout)
Returns function: f(action, params, method, token)
const Postapi = require('simplepostapi')
var Auth = Postapi('authService', 'http://auth.somesite.com')
Auth('login', {
some: 'param'
}).then(user => {
// do stuff
})