文件名称:patchboard-js:适用于Patchboard APIJavaScript客户端
文件大小:18KB
文件格式:ZIP
更新时间:2024-05-18 05:17:29
CoffeeScript
适用于JavaScript的Patchboard Client 用法 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 " }, ( er
【文件预览】:
patchboard-js-master
----package.json(593B)
----Rakefile(468B)
----test()
--------functional()
--------request_test.coffee(3KB)
--------helpers.coffee(1KB)
--------unit()
--------all.coffee(170B)
----LICENSE(1KB)
----src()
--------schema_manager.coffee(527B)
--------api.coffee(4KB)
--------action.coffee(4KB)
--------headers.coffee(873B)
--------client.coffee(4KB)
--------request.coffee(4KB)
----.gitignore(13B)
----README.md(482B)