patchboard-js

0.5.0-beta2 • Public • Published

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: "matthew@mail.com"}(error, response) ->
      else
        console.error error
  else
    console.error error

Readme

Keywords

none

Package Sidebar

Install

npm i patchboard-js

Weekly Downloads

29

Version

0.5.0-beta2

License

none

Last publish

Collaborators

  • automatthew