patchboard-js

JavaScript client for Patchboard APIs

npm install patchboard-js
2 downloads in the last week
88 downloads in the last month

Patchboard Client for JavaScript

Usage

Client = require "patchboard-js"

# Give Client.discover the URL to a Patchboard API server
Client.discover "http://api.wherever.com/", (client) ->
  {users} = client.resources
  users.create {login: "matthew"}, (error, response) ->
    if error
      console.error error
    else
      user.update {email: "matthew@mail.com}, (error, response) ->
npm loves you