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
-
Notifications
You must be signed in to change notification settings - Fork 5
JavaScript client for Patchboard APIs
License
patchboard/patchboard-js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
JavaScript client for Patchboard APIs
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published