patchboard-js
v0.5.0-beta2
Published
JavaScript client for Patchboard APIs
Downloads
11
Readme
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/", (error, client) ->
unless error?
{users} = client.resources
users.create {login: "matthew"}, (error, response) ->
unless error?
user.update {email: "[email protected]"}, (error, response) ->
else
console.error error
else
console.error error