1.0.2 • Published 10 years ago

poole-client v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

Poole Client

Poole App Client, a promise-based wrapper for PooleApp.com

Installation

npm install poole-client --save

Usage

Require client from node:

var poole = require('poole-client');

Get data via get() function, then access success and error handlers using the async callbacks:

poole.get()
  .then(function(data) {

    console.log('got some data from poole', data);

  }, function(err) {
    console.log('error', err);
  });

Save data by sending form key-value pairs to add() function:

poole.add(formData)
  .then(function() {
      
    // data saved, return a 201 response or something

  }, function(err) {
    console.log('error saving data', err);

  });
1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago